RFD: Replace class java.lang.Shutdown.Lock with Object?
Eirik Bjørsnøs
eirbjo at gmail.com
Fri Jan 16 18:26:28 UTC 2026
Hi,
java.lang.Shutdown uses a static nested Lock class for synchronization.
This seems trivially replaceable with new Object() which would reduce class
loading during shutdown.
java.lang.ref.ReferenceQueue uses a similar idiom and could potentially be
cleaned up as well.
I'd be happy to contribute a PR for this cleanup. Worth pursuing? Thoughts?
Cheers,
Eirik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20260116/088cb943/attachment.htm>
More information about the core-libs-dev
mailing list