On Wed, 31 Aug 2022 05:15:22 GMT, David Holmes <dhol...@openjdk.org> wrote:
>> Okay, I added your comment. > > I still can't decipher what this "map" actually holds. What does the unique > WeakHandle actually refer to? WeakHandles are wrappers around a pointer to an oop that has been allocated in OopStorage. We cannot hold oops directly in hashtables because then we'd have to tell GC how and when to walk the hashtable. We want to save the oops though because they tell us whether this protection domain has been checked for the class that we're currently loading. The Old Hashtable held WeakHandles. So does this one, except with the wart in that we need the WeakHandle for both lookup and to return a unique WeakHandle for the protection domain oop. ------------- PR: https://git.openjdk.org/jdk/pull/10043