Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/cpu/zero/vm/cppInterpreter_zero.cpp Thu Apr 29 17:53:58 2010 -0700 +++ b/src/cpu/zero/vm/cppInterpreter_zero.cpp Fri Apr 30 04:27:25 2010 -0700 @@ -833,7 +833,7 @@ 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;