mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
8046919: jni_PushLocalFrame OOM - increase MAX_REASONABLE_LOCAL_CAPACITY
Increase the previous limit from 4k to 64k, added "-XX:MaxJNILocalCapacity=<capacity>" flag Reviewed-by: hseigel, fparain
This commit is contained in:
parent
23b30dee7e
commit
e5b71580fb
2 changed files with 9 additions and 11 deletions
|
@ -1216,6 +1216,11 @@ class CommandLineFlags {
|
|||
product(bool, UseFastJNIAccessors, true, \
|
||||
"Use optimized versions of Get<Primitive>Field") \
|
||||
\
|
||||
product(intx, MaxJNILocalCapacity, 65536, \
|
||||
"Maximum allowable local JNI handle capacity to " \
|
||||
"EnsureLocalCapacity() and PushLocalFrame(), " \
|
||||
"where <= 0 is unlimited, default: 65536") \
|
||||
\
|
||||
product(bool, EagerXrunInit, false, \
|
||||
"Eagerly initialize -Xrun libraries; allows startup profiling, " \
|
||||
"but not all -Xrun libraries may support the state of the VM " \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue