RFR (XXS) JDK-8046919: jni_PushLocalFrame OOM - increase MAX_REASONABLE_LOCAL_CAPACITY
David Simms
david.simms at oracle.com
Mon Jul 7 11:25:33 UTC 2014
Greetings,
Small fix to adjust the local JNI handle capacity check
(MAX_REASONABLE_LOCAL_CAPACITY) for "EnsureLocalCapacity" and
"PushLocalFrame", from 4k to 64k handles.
This fairly arbitrary number is currently meant for sanity checking the
"capacity" argument, actual handle allocation is "lazy on demand" as
"JNIHandleBlock" are never freed (but placed on free list).
Bug URL: https://bugs.openjdk.java.net/browse/JDK-8046919
Webrev: http://cr.openjdk.java.net/~dsimms/8046919/
Testing: jprt, Test7007040 (see: JDK-7007040), and internal tests:
"vm.quick.testlist nsk.jvmti.testlist vm.runtime.testlist WeblogicMedrec
runThese Kitchensink"
Cheers
/David Simms
More information about the hotspot-runtime-dev
mailing list