RFR : JDK-8162530 : src/jdk.management/share/native/libmanagement_ext/GcInfoBuilder.c doesn't handle JNI exceptions properly
David Holmes
david.holmes at oracle.com
Mon Aug 1 07:03:22 UTC 2016
Hi Amit,
On 1/08/2016 4:10 PM, Amit Sapre wrote:
> Hello,
>
>
>
> Please review JNI exception handling related changes.
>
> Bug id : https://bugs.openjdk.java.net/browse/JDK-8162530
>
> Webrev : http://cr.openjdk.java.net/~hb/sponsorship/8162530/webrev.00/
Sorry but that's wrong way to fix this. We should never just blindly
clear exceptions and continue as if they never happened. If an exception
is pending after one of these JNI calls the method should return
immediately and allow the exception to propagate to the java code.
Thanks,
David
>
>
> Thanks,
>
> Amit
>
More information about the serviceability-dev
mailing list