On Mon, 24 Feb 2025 23:47:02 GMT, Chen Liang <li...@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