8231563: ZGC: Fails to warn when user sets the max heap size to larger than 16TB
Reviewed-by: tschatzl, pliden
--- a/src/hotspot/cpu/aarch64/gc/z/zGlobals_aarch64.hpp Thu Oct 03 07:38:00 2019 +0200
+++ b/src/hotspot/cpu/aarch64/gc/z/zGlobals_aarch64.hpp Fri Sep 27 09:01:39 2019 +0200
@@ -36,7 +36,7 @@
// ------------------------------------------------------------------
//
const size_t ZPlatformGranuleSizeShift = 21; // 2MB
-const size_t ZPlatformMaxHeapSizeShift = 46; // 16TB
+const size_t ZPlatformMaxHeapSizeShift = 44; // 16TB
const size_t ZPlatformNMethodDisarmedOffset = 4;
const size_t ZPlatformCacheLineSize = 64;
--- a/src/hotspot/cpu/x86/gc/z/zGlobals_x86.hpp Thu Oct 03 07:38:00 2019 +0200
+++ b/src/hotspot/cpu/x86/gc/z/zGlobals_x86.hpp Fri Sep 27 09:01:39 2019 +0200
@@ -36,7 +36,7 @@
// ------------------------------------------------------------------
//
const size_t ZPlatformGranuleSizeShift = 21; // 2MB
-const size_t ZPlatformMaxHeapSizeShift = 46; // 16TB
+const size_t ZPlatformMaxHeapSizeShift = 44; // 16TB
const size_t ZPlatformNMethodDisarmedOffset = 4;
const size_t ZPlatformCacheLineSize = 64;