RFR: 8168914: Crash in ClassLoaderData/JNIHandleBlock::oops_do during concurrent marking

Erik Helin erik.helin at oracle.com
Mon Feb 20 15:25:21 UTC 2017


On 02/20/2017 03:57 PM, Kim Barrett wrote:
>> On Feb 20, 2017, at 9:06 AM, Erik Helin <erik.helin at oracle.com> wrote:
>>
>> On 02/16/2017 07:51 PM, Kim Barrett wrote:
>>> src/share/vm/classfile/classLoaderData.hpp
>>> 179     // Only one thread can add a time, guarded by the Metaspace_lock.
>>>
>>> Only one thread at a time time can add?
>>
>> Yes. See ClassLoaderData::add_handle, all the threads synchronize using
>> ClassLoaderData::metaspace_lock().
>>
>> Thanks,
>> Erik
> 
> Sorry for the confusing review comment. That was a suggested rewording to fix gammer in the quoted text, rather than questioning whether it was really mutex protected.

Haha :D Thanks for the comment, I'll update it in the next version!

Erik


More information about the hotspot-dev mailing list