mirror of
https://github.com/darlinghq/darling-openjdk.git
synced 2024-12-03 18:11:09 +00:00
8205172: 32 bit build broken
Reviewed-by: roland, kvn, dholmes
This commit is contained in:
parent
ca60e251a9
commit
ea76c6d316
@ -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
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user