RFR: 8355938: Addressed rare lost unpark bug 8074773 by pre-loading LockSupport.class

Alan Bateman alanb at openjdk.org
Tue Apr 29 18:58:47 UTC 2025


On Tue, 29 Apr 2025 18:32:12 GMT, kabutz <duke at openjdk.org> wrote:

> What is the potential downside of adding the static block to make sure the class is loaded?

LockSupport is part of the standard API, we can't force every usage to preload this class. So if we have to change anything then it would be better to do it in one place, maybe System.initPhase3. But I think we first need to page in some of the details from 10 years ago.

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

PR Comment: https://git.openjdk.org/jdk/pull/24952#issuecomment-2839909510


More information about the core-libs-dev mailing list