RFR: 8372652: Re-enable LocalRandom clinit after monitor pinning improvements
Alan Bateman
alanb at openjdk.org
Fri Nov 28 08:18:45 UTC 2025
On Fri, 28 Nov 2025 08:03:16 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> Looks fine to me. I suspect this one from @AlanBateman's Loom integration, maybe it was literally his addition? :)
JEP 425 had many contributors, here's the original commit in the loom repo in 2020 from Leonid:
https://github.com/openjdk/loom/commit/d6a26a5fc84c62527af2639cbcda105014fb439e
The recent work for JDK 26 allows virtual threads to preempt/unmount while waiting for another thread to initialize a class but they do not allow a virtual thread to unmount while executing a class initializer (as there are VM frames on the stack).
I think I would need more context to know if the change proposed here is okay.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28547#issuecomment-3588331383
More information about the hotspot-dev
mailing list