mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-09 14:38:42 +00:00
8230350: Shenandoah: Assertion failed when GC is cancelled by a worker thread
Reviewed-by: rkennke
This commit is contained in:
parent
4fb41f2617
commit
f88c32f6f6
@ -1920,7 +1920,7 @@ bool ShenandoahHeap::try_cancel_gc() {
|
||||
else if (prev == CANCELLED) return false;
|
||||
assert(ShenandoahSuspendibleWorkers, "should not get here when not using suspendible workers");
|
||||
assert(prev == NOT_CANCELLED, "must be NOT_CANCELLED");
|
||||
{
|
||||
if (Thread::current()->is_Java_thread()) {
|
||||
// We need to provide a safepoint here, otherwise we might
|
||||
// spin forever if a SP is pending.
|
||||
ThreadBlockInVM sp(JavaThread::current());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user