Skip to content
Permalink
Browse files
8278832: riscv: Inconsistency of Java frame offset definition in jdk.…
…hotspot.agent

Reviewed-by: yadongwang, yzhu, fyang
  • Loading branch information
feilongjiang authored and Fei Yang committed Dec 15, 2021
1 parent 3a9a1eb commit 58dff3e46fbb3e9cb57b60e742fd454535254340
Showing 1 changed file with 5 additions and 5 deletions.
@@ -47,12 +47,12 @@ public class RISCV64Frame extends Frame {
}

// Java frames
private static final int LINK_OFFSET = 0;
private static final int RETURN_ADDR_OFFSET = 1;
private static final int SENDER_SP_OFFSET = 2;
private static final int LINK_OFFSET = -2;
private static final int RETURN_ADDR_OFFSET = -1;
private static final int SENDER_SP_OFFSET = 0;

// Interpreter frames
private static final int INTERPRETER_FRAME_SENDER_SP_OFFSET = -1;
private static final int INTERPRETER_FRAME_SENDER_SP_OFFSET = -3;
private static final int INTERPRETER_FRAME_LAST_SP_OFFSET = INTERPRETER_FRAME_SENDER_SP_OFFSET - 1;
private static final int INTERPRETER_FRAME_METHOD_OFFSET = INTERPRETER_FRAME_LAST_SP_OFFSET - 1;
private static int INTERPRETER_FRAME_MDX_OFFSET; // Non-core builds only
@@ -66,7 +66,7 @@ public class RISCV64Frame extends Frame {
private static int INTERPRETER_FRAME_MONITOR_BLOCK_BOTTOM_OFFSET;

// Entry frames
private static int ENTRY_FRAME_CALL_WRAPPER_OFFSET = -8;
private static int ENTRY_FRAME_CALL_WRAPPER_OFFSET = -10;

// Native frames
private static final int NATIVE_FRAME_INITIAL_PARAM_OFFSET = 2;

0 comments on commit 58dff3e

Please sign in to comment.