8205172: 32 bit build broken

Reviewed-by: roland, kvn, dholmes
This commit is contained in:
Martin Doerr 2018-06-19 16:29:48 +02:00
parent ca60e251a9
commit ea76c6d316
3 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ public:
//
// The trap_state is collected only if ProfileTraps is true.
trap_bits = 1+31, // 31: enough to distinguish [0..Reason_RECORDED_LIMIT].
trap_mask = right_n_bits(trap_bits),
trap_mask = -1,
first_flag = 0
};

View File

@ -47,7 +47,7 @@ static uint64_t next_random(uint64_t rnd) {
const uint64_t PrngMult = 0x5DEECE66DLL;
const uint64_t PrngAdd = 0xB;
const uint64_t PrngModPower = 48;
const uint64_t PrngModMask = right_n_bits(PrngModPower);
const uint64_t PrngModMask = ((uint64_t)1 << PrngModPower) - 1;
//assert(IS_SAFE_SIZE_MUL(PrngMult, rnd), "Overflow on multiplication.");
//assert(IS_SAFE_SIZE_ADD(PrngMult * rnd, PrngAdd), "Overflow on addition.");
return (PrngMult * rnd + PrngAdd) & PrngModMask;

View File

@ -52,7 +52,7 @@ static jvmtiEnv *second_jvmti = NULL;
typedef struct _ObjectTrace{
jweak object;
size_t size;
jlong size;
jvmtiFrameInfo* frames;
size_t frame_count;
jthread thread;