RFR: 8350549: MethodHandleProxies.WRAPPER_TYPES is not thread-safe
Jaikiran Pai
jpai at openjdk.org
Wed Mar 26 16:57:13 UTC 2025
On Mon, 24 Feb 2025 23:47:02 GMT, Chen Liang <liach at openjdk.org> wrote:
> Use a thread-safe ReferencedKeySet instead of a WeakHashMap key set.
Hello Chen, going by what's documented in the `jdk.internal.util.ReferencedKeySet`, the proposed change looks reasonable to me. Someone more familiar with that class and this area in general might have additional inputs. More importantly though, I think this will require a jtreg test to verify that the thread safety in MethodHandleProxies works as expected.
-------------
PR Review: https://git.openjdk.org/jdk/pull/23757#pullrequestreview-2717971290
More information about the core-libs-dev
mailing list