Hi,

 

Please review the following fix in JDK9 at your convenience:

 

Bug : https://bugs.openjdk.java.net/browse/JDK-8162461 

 

Webrev : http://cr.openjdk.java.net/~jdv/8162461/webrev.00/ 

 

Issue : If we try to perform operations like reader.abort()/reader.dispose()/ 
reader.dispose() in any of the IIOReadUpdateListener callbacks JVM will throw 
deadlock error.

 

Root cause : We are making callbacks from native side to Java by holding some 
resources in JNI critical lock.

 

Solution : We have to release the JNI critical lock on the resources before we 
call Java function from native side. If we have JNI critical lock and we throw 
an Exception in that case also we should release the lock.

 

Thanks,

Jay

 

Reply via email to