Skip to content

Commit 691b208

Browse files
pejovicalewurm
authored andcommitted
[GR-55694] Fix total frame size of JNI trampolines.
PullRequest: graal/18367
2 parents 59a8993 + daf3d18 commit 691b208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.core.graal.amd64/src/com/oracle/svm/core/graal/amd64/SubstrateAMD64Backend.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ public CompilationResult createJNITrampolineMethod(ResolvedJavaMethod method, Co
18331833
result.recordMark(asm.position(), PROLOGUE_END);
18341834
byte[] instructions = asm.close(true);
18351835
result.setTargetCode(instructions, instructions.length);
1836-
result.setTotalFrameSize(getTarget().stackAlignment); // not really, but 0 not allowed
1836+
result.setTotalFrameSize(FrameAccess.returnAddressSize());
18371837
return result;
18381838
}
18391839

0 commit comments

Comments
 (0)