mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8210064: ZGC: Introduce ZConcurrentRootsIterator for scanning a subset of strong IN_NATIVE roots concurrently
Reviewed-by: pliden, kbarrett
This commit is contained in:
parent
5f2b11d373
commit
782fa608d2
13 changed files with 146 additions and 49 deletions
|
@ -166,6 +166,16 @@ void assert_locked_or_safepoint(const Monitor * lock) {
|
|||
fatal("must own lock %s", lock->name());
|
||||
}
|
||||
|
||||
// a weaker assertion than the above
|
||||
void assert_locked_or_safepoint_weak(const Monitor * lock) {
|
||||
if (IgnoreLockingAssertions) return;
|
||||
assert(lock != NULL, "Need non-NULL lock");
|
||||
if (lock->is_locked()) return;
|
||||
if (SafepointSynchronize::is_at_safepoint()) return;
|
||||
if (!Universe::is_fully_initialized()) return;
|
||||
fatal("must own lock %s", lock->name());
|
||||
}
|
||||
|
||||
// a stronger assertion than the above
|
||||
void assert_lock_strong(const Monitor * lock) {
|
||||
if (IgnoreLockingAssertions) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue