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.

Reply via email to