changeset 54248:b9cd87da3211

8221219: ZGC: Remove ZStallOnOutOfMemory option Reviewed-by: stefank, eosterlund
author pliden
date Fri, 22 Mar 2019 12:49:33 +0100
parents 3e7fccdb6181
children 931247e90857
files src/hotspot/share/gc/z/zObjectAllocator.cpp src/hotspot/share/gc/z/z_globals.hpp
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/z/zObjectAllocator.cpp	Fri Mar 22 12:49:32 2019 +0100
+++ b/src/hotspot/share/gc/z/zObjectAllocator.cpp	Fri Mar 22 12:49:33 2019 +0100
@@ -186,10 +186,6 @@
   ZAllocationFlags flags;
   flags.set_no_reserve();
 
-  if (!ZStallOnOutOfMemory) {
-    flags.set_non_blocking();
-  }
-
   return alloc_object(size, flags);
 }
 
--- a/src/hotspot/share/gc/z/z_globals.hpp	Fri Mar 22 12:49:32 2019 +0100
+++ b/src/hotspot/share/gc/z/z_globals.hpp	Fri Mar 22 12:49:33 2019 +0100
@@ -49,10 +49,6 @@
   experimental(double, ZFragmentationLimit, 25.0,                           \
           "Maximum allowed heap fragmentation")                             \
                                                                             \
-  experimental(bool, ZStallOnOutOfMemory, true,                             \
-          "Allow Java threads to stall and wait for GC to complete "        \
-          "instead of immediately throwing an OutOfMemoryError")            \
-                                                                            \
   experimental(size_t, ZMarkStackSpaceLimit, 8*G,                           \
           "Maximum number of bytes allocated for mark stacks")              \
           range(32*M, 1024*G)                                               \