Split Lock Warning with ZGC and -XX:-ClassUnloading on Linux x86_64, JDK 17.0.2

Florian Weimer fweimer at redhat.com
Wed Sep 11 10:34:20 UTC 2024


* Stefan Karlsson:

> However, when class unloading is turned off we consider the object
> pointers in the JIT:ed methods to be roots into the object graph. When
> we walk these specific roots we take another path than the one pasted
> above, and that path performs a CAS to fix the pointers. It is still
> guarded by a lock, so there is is still mutual exclusion on this
> field. So, if I understand things correctly, there's no known problem
> with this because of the mutual exclusion, except that the split lock
> detector reports an issue.

Wouldn't the nmethod experience tearing during execution because it
doesn't take the lock?

Thanks,
Florian



More information about the zgc-dev mailing list