7119286: JSR292: SIGSEGV in JNIHandleBlock::release_block(JNIHandleBlock*, Thread*)+0x3c
Unaligned stack in throw_NullPointerException_at_call_entry(). Reviewed-by: twisti, never, kvn
This commit is contained in:
parent
e6015c7c26
commit
0f2f8f179e
@ -2978,7 +2978,9 @@ class StubGenerator: public StubCodeGenerator {
|
||||
int frame_complete = __ pc() - start;
|
||||
|
||||
// Set up last_Java_sp and last_Java_fp
|
||||
__ set_last_Java_frame(rsp, rbp, NULL);
|
||||
address the_pc = __ pc();
|
||||
__ set_last_Java_frame(rsp, rbp, the_pc);
|
||||
__ andptr(rsp, -(StackAlignmentInBytes)); // Align stack
|
||||
|
||||
// Call runtime
|
||||
if (arg1 != noreg) {
|
||||
@ -2997,7 +2999,7 @@ class StubGenerator: public StubCodeGenerator {
|
||||
|
||||
oop_maps->add_gc_map(__ pc() - start, map);
|
||||
|
||||
__ reset_last_Java_frame(true, false);
|
||||
__ reset_last_Java_frame(true, true);
|
||||
|
||||
__ leave(); // required for proper stackwalking of RuntimeStub frame
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user