-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: None
-
Component/s: core-libs
java.lang.Shutdown and java.lang.ref.ReferenceQueue both have empty Lock classes extending Object used as monitors for synchronization.
To avoid loading these two extra classes, we can replace them with the "new Object()" idiom instead.
This was first discussed on core-libs: https://mail.openjdk.org/pipermail/core-libs-dev/2026-January/157704.html
To avoid loading these two extra classes, we can replace them with the "new Object()" idiom instead.
This was first discussed on core-libs: https://mail.openjdk.org/pipermail/core-libs-dev/2026-January/157704.html
- links to
-
Review(master)
openjdk/jdk/29442