RFR: 8232116: ZGC: Remove redundant ZLock in ZNMethodTable

Erik Osterlund erik.osterlund at oracle.com
Thu Oct 10 17:08:43 UTC 2019


Hi Stefan,

Thanks for the review.

/Erik

> On 10 Oct 2019, at 19:00, Stefan Karlsson <stefan.karlsson at oracle.com> wrote:
> 
> Looks good.
> 
> StefanK
> 
>> On 2019-10-10 17:31, erik.osterlund at oracle.com wrote:
>> Hi,
>> 
>> The safe memory reclamation technique used in the ZNMethodTable has an unnecessary ZLock. This lock is statically initialized, which creates some bootstrapping issues. We should remove the lock, as in the context it is used, we are always protected under the CodeCache_lock.
>> 
>> Bug:
>> https://bugs.openjdk.java.net/browse/JDK-8232116
>> 
>> Webrev:
>> http://cr.openjdk.java.net/~eosterlund/8232116/webrev.00/
>> 
>> Thanks,
>> /Erik
> 




More information about the hotspot-gc-dev mailing list