changeset 5116:d0afbee540e0

8023227: Enhance layout_helper_log2_element_size assert Reviewed-by: mgerdin, jmasa
author stefank
date Mon, 19 Aug 2013 13:44:13 +0200
parents 9720d338b1d5
children 422920730903
files src/share/vm/oops/klass.hpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/klass.hpp	Fri Aug 16 11:26:09 2013 +0200
+++ b/src/share/vm/oops/klass.hpp	Mon Aug 19 13:44:13 2013 +0200
@@ -352,7 +352,8 @@
   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, "sanity");
+    assert(l2esz <= LogBitsPerLong,
+        err_msg("sanity. l2esz: 0x%x for lh: 0x%x", (uint)l2esz, (uint)lh));
     return l2esz;
   }
   static jint array_layout_helper(jint tag, int hsize, BasicType etype, int log2_esize) {