8221219: ZGC: Remove ZStallOnOutOfMemory option
authorpliden
Fri, 22 Mar 2019 12:49:33 +0100
changeset 54248 b9cd87da3211
parent 54247 3e7fccdb6181
child 54249 931247e90857
8221219: ZGC: Remove ZStallOnOutOfMemory option Reviewed-by: stefank, eosterlund
src/hotspot/share/gc/z/zObjectAllocator.cpp
src/hotspot/share/gc/z/z_globals.hpp
--- 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)                                               \