Mercurial > hg > graal-jvmci-8
comparison src/cpu/zero/vm/cppInterpreter_zero.cpp @ 1505:0c5b3cf3c1f5
6939182: Zero JNI handles fix
Summary: Zero will exit with an error when invoked with -Xcheck:jni.
Reviewed-by: twisti, kamg
Contributed-by: Gary Benson <gbenson@redhat.com>
author | twisti |
---|---|
date | Fri, 30 Apr 2010 04:27:25 -0700 |
parents | f9271ff9d324 |
children | 22af4ce8dba1 |
comparison
equal
deleted
inserted
replaced
1504:ae8f909e5fc7 | 1505:0c5b3cf3c1f5 |
---|---|
831 int monitor_words = moncount * frame::interpreter_frame_monitor_size(); | 831 int monitor_words = moncount * frame::interpreter_frame_monitor_size(); |
832 int stack_words = is_top_frame ? method->max_stack() : tempcount; | 832 int stack_words = is_top_frame ? method->max_stack() : tempcount; |
833 int callee_extra_locals = callee_locals - callee_param_count; | 833 int callee_extra_locals = callee_locals - callee_param_count; |
834 | 834 |
835 if (interpreter_frame) { | 835 if (interpreter_frame) { |
836 intptr_t *locals = interpreter_frame->sp() + method->max_locals(); | 836 intptr_t *locals = interpreter_frame->fp() + method->max_locals(); |
837 interpreterState istate = interpreter_frame->get_interpreterState(); | 837 interpreterState istate = interpreter_frame->get_interpreterState(); |
838 intptr_t *monitor_base = (intptr_t*) istate; | 838 intptr_t *monitor_base = (intptr_t*) istate; |
839 intptr_t *stack_base = monitor_base - monitor_words; | 839 intptr_t *stack_base = monitor_base - monitor_words; |
840 intptr_t *stack = stack_base - tempcount - 1; | 840 intptr_t *stack = stack_base - tempcount - 1; |
841 | 841 |