RFR (S) 8210842: Handle JNIGlobalRefLocker.cpp

JC Beyler jcbeyler at google.com
Tue Sep 18 03:59:43 UTC 2018


Hi all,

I've slowly started working on JDK-8191519
<https://bugs.openjdk.java.net/browse/JDK-8191519>. However before starting
to really refactor all the tests, I thought I'd get a few opinions. I am
working on internalizing the error handling of JNI calls via a SafeJNIEnv
class that redefines all the JNI calls to add an error checker.

The advantage is that the test code will look and feel like normal JNI code
and calls but will have the checks we want to have for our tests. If agreed
with this, we can augment the SafeJNIEnv class as needed. Also, if the
tests require something else than fatal errors, we can add a different
marker and make it a parameter to the base class.

Webrev: http://cr.openjdk.java.net/~jcbeyler/8210842/webrev.00/
Bug: https://bugs.openjdk.java.net/browse/JDK-8210842

Let me know what you think,
Jc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20180917/88ec12ce/attachment.html>


More information about the serviceability-dev mailing list