Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8160648 | 8-pool | Unassigned | P4 | Closed | Won't Fix |
Propose the introduction of "-Xcheck:jniverbose" and move some of the more expensive and verbose "-Xcheck:jni" features into the "jniverbose".
8043224: -Xcheck:jni improvements to exception checking and excessive local refs
Adds warnings for every time the user has not checked for pending exceptions, the warnings are emitted for every call site, even when is no pending exception. This as caused some grief with code that may make a single check for batches of calls, excessive warnings are produced, this leads to testing timeouts in some cases.
6311046: -Xcheck:jni should support checking of GetPrimitiveArrayCritical
The guarded memory checks here are very expensive for high throughput, like AWT event testing, it's been causing timeouts.
Folks in the wild are also affected, e.g.: https://community.oracle.com/thread/3783234
Behavior changes:
-Xcheck:jni:
* check_exceptions should only warn if there is a pending exception (same as previous to 8043224)
* guarded memory not used (same as previous to 6311046)
-Xcheck:jniverbose:
* check_exceptions complains pedantically for every unchecked call, as-per 8043224
* guarded memory used as per 6311046
8043224: -Xcheck:jni improvements to exception checking and excessive local refs
Adds warnings for every time the user has not checked for pending exceptions, the warnings are emitted for every call site, even when is no pending exception. This as caused some grief with code that may make a single check for batches of calls, excessive warnings are produced, this leads to testing timeouts in some cases.
6311046: -Xcheck:jni should support checking of GetPrimitiveArrayCritical
The guarded memory checks here are very expensive for high throughput, like AWT event testing, it's been causing timeouts.
Folks in the wild are also affected, e.g.: https://community.oracle.com/thread/3783234
Behavior changes:
-Xcheck:jni:
* check_exceptions should only warn if there is a pending exception (same as previous to 8043224)
* guarded memory not used (same as previous to 6311046)
-Xcheck:jniverbose:
* check_exceptions complains pedantically for every unchecked call, as-per 8043224
* guarded memory used as per 6311046
- backported by
-
JDK-8160648 Some of the checked JNI improvements are excessively verbose
- Closed
- relates to
-
JDK-8164086 Checked JNI pending exception check should be cleared when returning to Java frame
- Resolved
-
JDK-6311046 -Xcheck:jni should support checking of GetPrimitiveArrayCritical
- Closed
-
JDK-8043224 -Xcheck:jni improvements to exception checking and excessive local refs
- Closed