8180587: Assert in layout_helper_log2_element_size(jint) compares bits instead of bytes
authorthartmann
Fri, 19 May 2017 08:36:49 +0200
changeset 46482 10dde7fbed26
parent 46474 c872a196b75f
child 46483 94ffd2984ec9
8180587: Assert in layout_helper_log2_element_size(jint) compares bits instead of bytes Summary: Fixed assert to compare log2 element size in bytes. Reviewed-by: zmajo, kvn
hotspot/src/share/vm/oops/klass.hpp
--- a/hotspot/src/share/vm/oops/klass.hpp	Wed May 17 23:36:19 2017 +0200
+++ b/hotspot/src/share/vm/oops/klass.hpp	Fri May 19 08:36:49 2017 +0200
@@ -366,7 +366,7 @@
   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;
   }