mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8080775: Better argument formatting for assert() and friends
Reviewed-by: kbarrett, pliden
This commit is contained in:
parent
aa0818a98a
commit
1e71f67736
225 changed files with 1342 additions and 1432 deletions
|
@ -126,7 +126,7 @@ inline void* index_oop_from_field_offset_long(oop p, jlong field_offset) {
|
|||
"raw [ptr+disp] must be consistent with oop::field_base");
|
||||
}
|
||||
jlong p_size = HeapWordSize * (jlong)(p->size());
|
||||
assert(byte_offset < p_size, err_msg("Unsafe access: offset " INT64_FORMAT " > object's size " INT64_FORMAT, byte_offset, p_size));
|
||||
assert(byte_offset < p_size, "Unsafe access: offset " INT64_FORMAT " > object's size " INT64_FORMAT, byte_offset, p_size);
|
||||
}
|
||||
#endif
|
||||
if (sizeof(char*) == sizeof(jint)) // (this constant folds!)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue