--- 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) \