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:
Tobias Hartmann 2017-05-19 08:36:49 +02:00
parent 553d1e815b
commit 2ee903d3ff

View File

@ -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;
}