RFR: 8223260: NamingManager should cache InitialContextFactory
Daniel Fuchs
daniel.fuchs at oracle.com
Wed Jan 29 15:55:21 UTC 2020
Hi Seán,
> http://cr.openjdk.java.net/~coffeys/webrev.8223260.v1/webrev/
> A WeakHashKey with the TCCL as the key should be okay here.
If the TCCL is the key then there are good chances that the
concrete factory class is expected to be loaded by the TCCL.
If that happens then the value will reference the key and
nothing will ever get garbage collected.
So if I'm reading things rights this will not work as expected?
best regards,
-- daniel
More information about the core-libs-dev
mailing list