< prev index next >
src/hotspot/share/memory/universe.hpp
Print this page
@@ -442,11 +442,13 @@
}
static void set_narrow_klass_shift(int shift) {
assert(shift == 0 || shift == LogKlassAlignmentInBytes, "invalid shift for klass ptrs");
_narrow_klass._shift = shift;
- _oop_metadata_odd_mask = (shift) ? 1 : KlassPtrEvenOddMask;
+ if (shift == LogKlassAlignmentInBytes) {
+ _oop_metadata_odd_mask = 1;
+ }
}
static int oop_metadata_odd_mask() { return _oop_metadata_odd_mask; }
< prev index next >