mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-18 22:35:12 +00:00
8221219: ZGC: Remove ZStallOnOutOfMemory option
Reviewed-by: stefank, eosterlund
This commit is contained in:
parent
8b38ebf1a2
commit
5fdcdaadd4
@ -186,10 +186,6 @@ uintptr_t ZObjectAllocator::alloc_object(size_t size) {
|
||||
ZAllocationFlags flags;
|
||||
flags.set_no_reserve();
|
||||
|
||||
if (!ZStallOnOutOfMemory) {
|
||||
flags.set_non_blocking();
|
||||
}
|
||||
|
||||
return alloc_object(size, flags);
|
||||
}
|
||||
|
||||
|
||||
@ -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) \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user