Integrated: 8277631: ZGC: CriticalMetaspaceAllocation asserts
Erik Österlund
eosterlund at openjdk.java.net
Thu Nov 25 09:54:10 UTC 2021
On Tue, 23 Nov 2021 14:14:31 GMT, Erik Österlund <eosterlund 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.
This pull request has now been integrated.
Changeset: 3034ae87
Author: Erik Österlund <eosterlund at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/3034ae87ce4b94c7dc40cfb5a96d6d1e87910bbf
Stats: 39 lines in 2 files changed: 30 ins; 0 del; 9 mod
8277631: ZGC: CriticalMetaspaceAllocation asserts
Reviewed-by: pliden, stefank, dholmes
-------------
PR: https://git.openjdk.java.net/jdk/pull/6520
More information about the hotspot-dev
mailing list