RFR: 8288064: Class initialization locking

David Holmes dholmes at openjdk.java.net
Tue Jun 14 23:27:37 UTC 2022


On Mon, 13 Jun 2022 17:02:44 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Use a native JVM monitor and state for mutual exclusion for class linking and initialization.  See CR for more details.
> Tested with tier1-8. tiers 1-4 on Oracle supported platforms and 5-8 on linux-x64-debug.  There isn't any platform dependent code in this change.

src/hotspot/share/oops/instanceKlass.cpp line 1179:

> 1177: 
> 1178:   // Now flush all code that assume the class is not linked.
> 1179:   // Set state under the Compile_lock also.

Wow! Why do we have to do this now?

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

PR: https://git.openjdk.org/jdk/pull/9141


More information about the serviceability-dev mailing list