Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8278832: riscv: Inconsistency of Java frame offset definition in jdk.hotspot.agent #30

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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
Expand All @@ -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;
Expand Down