@@ -298,8 +298,8 @@ static void assert_and_log_unsafe_value_access(oop p, jlong offset, InlineKlass*
298
298
assert (fd.is_inlined (), " field not flat" );
299
299
} else {
300
300
if (log_is_enabled (Trace, valuetypes)) {
301
- log_trace (valuetypes)(" not a field in %s at offset " JLONG_FORMAT_X ,
302
- p->klass ()->external_name (), offset);
301
+ log_trace (valuetypes)(" not a field in %s at offset " UINT64_FORMAT_X ,
302
+ p->klass ()->external_name (), ( uint64_t ) offset);
303
303
}
304
304
}
305
305
} else if (k->is_flatArray_klass ()) {
@@ -316,12 +316,12 @@ static void assert_and_log_unsafe_value_access(oop p, jlong offset, InlineKlass*
316
316
FlatArrayKlass* vak = FlatArrayKlass::cast (k);
317
317
int index = (offset - vak->array_header_in_bytes ()) / vak->element_byte_size ();
318
318
address dest = (address)((flatArrayOop)p)->value_at_addr (index , vak->layout_helper ());
319
- log_trace (valuetypes)(" %s array type %s index %d element size %d offset " JLONG_FORMAT_X " at " INTPTR_FORMAT,
319
+ log_trace (valuetypes)(" %s array type %s index %d element size %d offset " UINT64_FORMAT_X " at " INTPTR_FORMAT,
320
320
p->klass ()->external_name (), vak->external_name (),
321
- index , vak->element_byte_size (), offset, p2i (dest));
321
+ index , vak->element_byte_size (), ( uint64_t ) offset, p2i (dest));
322
322
} else {
323
- log_trace (valuetypes)(" %s field type %s at offset " JLONG_FORMAT_X ,
324
- p->klass ()->external_name (), vk->external_name (), offset);
323
+ log_trace (valuetypes)(" %s field type %s at offset " UINT64_FORMAT_X ,
324
+ p->klass ()->external_name (), vk->external_name (), ( uint64_t ) offset);
325
325
}
326
326
}
327
327
}
0 commit comments