RFR: 8288064: Class initialization locking

David Holmes dholmes at openjdk.java.net
Tue Jun 14 23:33:36 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/runtime/vframe.cpp line 231:

> 229:     else if (thread()->osthread()->get_state() == CONDVAR_WAIT) {
> 230:       // We are waiting on an Object monitor but Object.wait() isn't the
> 231:       // top-frame, so we should be waiting on a Class initialization monitor.

Comment needs updating. I'm glad to see this still works okay with such a simple change.

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

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


More information about the serviceability-dev mailing list