mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7088020: SEGV in JNIHandleBlock::release_block
Reviewed-by: kvn, twisti
This commit is contained in:
parent
92b2b44b18
commit
1ebca30d26
8 changed files with 104 additions and 67 deletions
|
@ -624,6 +624,11 @@ address MethodHandles::generate_method_handle_interpreter_entry(MacroAssembler*
|
|||
|
||||
// error path for invokeExact (only)
|
||||
__ bind(invoke_exact_error_path);
|
||||
// ensure that the top of stack is properly aligned.
|
||||
__ mov(rdi, rsp);
|
||||
__ andptr(rsp, -StackAlignmentInBytes); // Align the stack for the ABI
|
||||
__ pushptr(Address(rdi, 0)); // Pick up the return address
|
||||
|
||||
// Stub wants expected type in rax and the actual type in rcx
|
||||
__ jump(ExternalAddress(StubRoutines::throw_WrongMethodTypeException_entry()));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue