RFR: 8277631: ZGC: CriticalMetaspaceAllocation asserts

Erik Österlund eosterlund at openjdk.java.net
Tue Nov 23 14:46:08 UTC 2021


On Tue, 23 Nov 2021 14:33:47 GMT, Per Liden <pliden at openjdk.org> wrote:

>> The MetaspaceCritical_lock is a non-safepoint checking lock. That implies that the allow VM block flag is true. That implies that taking that lock takes a NoSafepointVerifier. That causes an assert to fire when MetaspaceCriticalAllocation::wait_for_purge transitions to blocked with ThreadBlockInVM while holding the lock. The fix is to move the locker inside of the ThreadBlockInVM.
>
> Marked as reviewed by pliden (Reviewer).

Thanks for the reviews, @pliden and @stefank!

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

PR: https://git.openjdk.java.net/jdk/pull/6520


More information about the hotspot-dev mailing list