RFR: 8168914: Crash in ClassLoaderData/JNIHandleBlock::oops_do during concurrent marking (original) (raw)

Kim Barrett kim.barrett at oracle.com
Mon Feb 20 14:57:44 UTC 2017


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

Only one thread at a time time can add? Yes. See ClassLoaderData::addhandle, all the threads synchronize using ClassLoaderData::metaspacelock(). 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.



More information about the hotspot-dev mailing list