Skip to content

Commit 742925d

Browse files
committed
Style fix.
1 parent e5655ea commit 742925d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

substratevm/src/com.oracle.svm.core.graal.aarch64/src/com/oracle/svm/core/graal/aarch64/AArch64FarReturnOp.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,12 @@ public void emitCode(CompilationResultBuilder crb, AArch64MacroAssembler masm) {
6969
assert sp.getPlatformKind().getSizeInBytes() == FrameAccess.wordSize() && FrameAccess.wordSize() == Long.BYTES : Assertions.errorMessage(sp.getPlatformKind().getSizeInBytes(),
7070
FrameAccess.wordSize());
7171
/*
72-
* In case of deoptimization, we farReturn into an entry point (deopt stub) which will do a regular enter
73-
* and thus save lr. This keeps the stack walkable as the frame is properly recognized as deoptimized due to
74-
* the return address matching the deopt stub entry point.
72+
* Set lr to the new instruction pointer like a regular return does.
73+
*
74+
* For dispatching an exception into a frame pending deoptimization, we farReturn into a
75+
* deopt stub which will do a regular enter and thus push lr. This keeps the stack walkable
76+
* and the frame can be recognized as pending deoptimization due to the return address from
77+
* lr matching the deopt stub entry point.
7578
*/
7679
masm.mov(64, lr, asRegister(ip));
7780

0 commit comments

Comments
 (0)