RFR: 8309622: Re-examine the cache mechanism in BaseLocale

Daniel Fuchs dfuchs at openjdk.org
Mon Jun 12 14:47:49 UTC 2023


On Mon, 12 Jun 2023 14:26:34 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> The main change is that base locales will now be cached using WeakReference rather than SoftReference, and thus probably collected more eagerly, but that actually looks like a positive change.

Hmm.... or not. Nothing references the key, so the binding would be immediately eligible for garbage collection.

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

PR Comment: https://git.openjdk.org/jdk/pull/14404#issuecomment-1587493993


More information about the core-libs-dev mailing list