Class ConcurrentWeakIdentityHashMap<K,V>

java.lang.Object
com.oracle.truffle.js.runtime.util.ConcurrentWeakIdentityHashMap<K,V>
All Implemented Interfaces:
Map<K,V>

public final class ConcurrentWeakIdentityHashMap<K,V> extends Object implements Map<K,V>
Thread-safe WeakHashMap alternative based on ConcurrentHashMap to avoid lock contention for lookups. Keys are compared by object identity. Keys and values must not be null. Inspired by jdk.internal.util.ReferencedKeyMap. Only partially implements the Map interface; unused methods are omitted for simplicity.