--- old/src/hotspot/share/utilities/globalDefinitions.hpp 2018-05-07 15:52:11.548507519 +0200 +++ new/src/hotspot/share/utilities/globalDefinitions.hpp 2018-05-07 15:52:11.236502230 +0200 @@ -451,6 +451,7 @@ const int LogKlassAlignment = LogKlassAlignmentInBytes - LogHeapWordSize; const int KlassAlignmentInBytes = 1 << LogKlassAlignmentInBytes; const int KlassAlignment = KlassAlignmentInBytes / HeapWordSize; +const int KlassPtrValueTypeMask = (1 << (LogKlassAlignmentInBytes + 1)) - 1; // Maximal size of heap where unscaled compression can be used. Also upper bound // for heap placement: 4GB.