-
Bug
-
Resolution: Fixed
-
P2
-
solaris_11
-
b71
-
generic
-
solaris_nevada
The JNI PopLocalFrame() function isn't safe to use when an exception is pending, using it when the JVM is run with the "-verbose:jni -Xcheck:jni" flags set results in a fatal JVM error. The JNI documentation says it is necessary to check for exceptions after every JNI call that may throw an exception, and it also strongly recommends the use of PushLocalFrame/PopLocalFrame for local reference management. These two recommendations are pretty much in conflict because PopLocalFrame can't be called when an exception is pending.
PopLocalFrame should be made pending-exception safe, like all the other JNI functions that can be used to free local references.
PopLocalFrame should be made pending-exception safe, like all the other JNI functions that can be used to free local references.
- relates to
-
JDK-6364623 JNI specification may need to be corrected.
-
- Closed
-
-
JDK-4973054 Need to clarify how to handle pending exceptions in JNI calls
-
- Closed
-