8231563: ZGC: Fails to warn when user sets the max heap size to larger than 16TB
authorstefank
Fri, 27 Sep 2019 09:01:39 +0200
changeset 58451 389e50d98dc3
parent 58450 67b3480882b4
child 58452 61437e06602a
8231563: ZGC: Fails to warn when user sets the max heap size to larger than 16TB Reviewed-by: tschatzl, pliden
src/hotspot/cpu/aarch64/gc/z/zGlobals_aarch64.hpp
src/hotspot/cpu/x86/gc/z/zGlobals_x86.hpp
--- 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;