Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,13 @@ public Frame sender(RegisterMap regMap, CodeBlob cb) {
}

if (cb != null) {
return cb.isUpcallStub() ? senderForUpcallStub(map, (UpcallStub)cb) : senderForCompiledFrame(map, cb);
if (cb.isUpcallStub()) {
return senderForUpcallStub(map, (UpcallStub)cb);
} else if (cb.isContinuationStub()) {
return senderForContinuationStub(map, cb);
} else {
return senderForCompiledFrame(map, cb);
}
}

// Must be native-compiled frame, i.e. the marshaling code for native
Expand Down Expand Up @@ -331,6 +337,15 @@ private Frame senderForInterpreterFrame(PPC64RegisterMap map) {
return new PPC64Frame(sp, unextendedSP, getLink(), getSenderPC());
}

private Frame senderForContinuationStub(PPC64RegisterMap map, CodeBlob cb) {
var contEntry = map.getThread().getContEntry();

Address sp = contEntry.getEntrySP();
Address pc = contEntry.getEntryPC();
Address fp = contEntry.getEntryFP();

return new PPC64Frame(sp, fp, pc);
}

private Frame senderForCompiledFrame(PPC64RegisterMap map, CodeBlob cb) {
if (DEBUG) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
* @test
* @bug 8369505
* @requires vm.hasSA
* @requires (os.arch == "amd64" | os.arch == "x86_64" | os.arch == "aarch64" | os.arch == "riscv64")
* @library /test/lib
* @run driver TestJhsdbJstackWithVirtualThread
*/
Expand Down