Withdrawn: 8253280: Use class name as class loading lock

2021-01-11 Thread Robert LU
On Thu, 10 Sep 2020 05:25:43 GMT, Robert LU wrote: > When many thread try to load same class, the thread will stuck on > `ClassLoader.loadClass`. > At current jdk, the stacktrace by example program is: > "Thread-1" prio=5 Id=12 BLOCKED on java.lang.Object@2e817b38 owned

RFR: 8253280: Use class name as class loading lock

2020-11-14 Thread Robert Lu
} } -- Commit messages: - 8253280: Use class name as class loading lock Changes: https://github.com/openjdk/jdk/pull/104/files Webrev: https://openjdk.github.io/cr/?repo=jdk&pr=104&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8253280 Stats: 74 lines changed; 73 ins; 1 del Patch: https://git.openjdk.java.net/jdk/pull/104.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/104/head:pull/104 PR: https://git.openjdk.java.net/jdk/pull/104 -- Robert Lu

RFR: 8253280: Use class name as class loading lock

2020-11-14 Thread Robert LU
When many thread try to load same class, the thread will stuck on `ClassLoader.loadClass`. At current jdk, the stacktrace by example program is: "Thread-1" prio=5 Id=13 BLOCKED on java.lang.String@724af044 owned by "Thread-0" Id=12 at java.base/jdk.internal.loader.BuiltinClassLoader.load