mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6939182: Zero JNI handles fix
Zero will exit with an error when invoked with -Xcheck:jni. Reviewed-by: twisti, kamg
This commit is contained in:
parent
61b9d428d1
commit
55457c9cc7
8 changed files with 59 additions and 35 deletions
|
@ -833,7 +833,7 @@ int AbstractInterpreter::layout_activation(methodOop method,
|
|||
int callee_extra_locals = callee_locals - callee_param_count;
|
||||
|
||||
if (interpreter_frame) {
|
||||
intptr_t *locals = interpreter_frame->sp() + method->max_locals();
|
||||
intptr_t *locals = interpreter_frame->fp() + method->max_locals();
|
||||
interpreterState istate = interpreter_frame->get_interpreterState();
|
||||
intptr_t *monitor_base = (intptr_t*) istate;
|
||||
intptr_t *stack_base = monitor_base - monitor_words;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue