8329088: Stack chunk thawing races with concurrent GC stack iteration

Reviewed-by: stefank, pchilanomate
This commit is contained in:
Erik Österlund 2024-05-02 08:31:49 +00:00
parent c4fe5bf90c
commit 8bcd2e61ae
12 changed files with 85 additions and 77 deletions

View file

@ -31,10 +31,10 @@ public final class StackChunk {
private StackChunk parent;
private int size; // in words
private int sp; // in words
private int argsize; // bottom stack-passed arguments, in words
private int bottom; // in words
// The stack itself is appended here by the VM, as well as some injected fields
public StackChunk parent() { return parent; }
public boolean isEmpty() { return sp >= (size - argsize); }
public boolean isEmpty() { return sp == bottom; }
}