RFR: 8292375: Convert ProtectionDomainCacheTable to ResourceHashtable [v4]

David Holmes dholmes at openjdk.org
Thu Sep 1 04:15:28 UTC 2022


On Wed, 31 Aug 2022 12:30:24 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> 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.

I've suggested a different comment above.

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

PR: https://git.openjdk.org/jdk/pull/10043


More information about the hotspot-dev mailing list