Skip to content

Commit daf3d18

Browse files
committed
Fix total frame size of JNI trampolines
1 parent cc12aed commit daf3d18

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)