mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-07 19:15:44 +00:00
8180587: Assert in layout_helper_log2_element_size(jint) compares bits instead of bytes
Fixed assert to compare log2 element size in bytes. Reviewed-by: zmajo, kvn
This commit is contained in:
parent
553d1e815b
commit
2ee903d3ff
@ -366,7 +366,7 @@ protected:
|
||||
static int layout_helper_log2_element_size(jint lh) {
|
||||
assert(lh < (jint)_lh_neutral_value, "must be array");
|
||||
int l2esz = (lh >> _lh_log2_element_size_shift) & _lh_log2_element_size_mask;
|
||||
assert(l2esz <= LogBitsPerLong,
|
||||
assert(l2esz <= LogBytesPerLong,
|
||||
"sanity. l2esz: 0x%x for lh: 0x%x", (uint)l2esz, (uint)lh);
|
||||
return l2esz;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user