8273482: Remove "foreground work" concept from WorkGang

Reviewed-by: tschatzl, kbarrett
This commit is contained in:
Per Liden 2021-09-10 09:49:45 +00:00
parent 2eaf374c5c
commit c1e39faaa9
6 changed files with 8 additions and 25 deletions

View file

@ -86,9 +86,8 @@ ShenandoahClassLoaderDataRoots<CONCURRENT, SINGLE_THREADED>::ShenandoahClassLoad
ClassLoaderDataGraph_lock->lock();
}
// Non-concurrent mode only runs at safepoints by VM thread
// Non-concurrent mode only runs at safepoints
assert(CONCURRENT || SafepointSynchronize::is_at_safepoint(), "Must be at a safepoint");
assert(CONCURRENT || Thread::current()->is_VM_thread(), "Can only be done by VM thread");
}
template <bool CONCURRENT, bool SINGLE_THREADED>