[jdk17] RFR: JDK-8266310: deadlock between System.loadLibrary and JNI FindClass loading another class

Mandy Chung mchung at openjdk.java.net
Fri Jun 18 16:51:30 UTC 2021


On Fri, 18 Jun 2021 09:50:49 GMT, Aleksei Voitylov <avoitylov at openjdk.org> wrote:

> Resubmitting the following PR https://github.com/openjdk/jdk/pull/3976 against JDK17.
> 
> This fixes the deadlock in ClassLoader between the two lock objects - a lock object associated with the class being loaded, and the ClassLoader.loadedLibraryNames hash map, locked during the native library load operation.
> 
> Further details can be found in the original PR.
> 
> Testing: jtreg and jck testing with no regressions. A new regression test was developed.

Looks good.

-------------

Marked as reviewed by mchung (Reviewer).

PR: https://git.openjdk.java.net/jdk17/pull/96


More information about the core-libs-dev mailing list