* jni.cc (_Jv_GetJNIEnvNewFrame): Set env->ex in all cases.
From-SVN: r58971
This commit is contained in:
parent
e9986d3ae2
commit
b08122a718
2 changed files with 8 additions and 2 deletions
|
@ -1984,9 +1984,9 @@ _Jv_GetJNIEnvNewFrame (jclass klass)
|
|||
{
|
||||
env = (JNIEnv *) _Jv_MallocUnchecked (sizeof (JNIEnv));
|
||||
env->p = &_Jv_JNIFunctions;
|
||||
env->ex = NULL;
|
||||
env->klass = klass;
|
||||
env->locals = NULL;
|
||||
// We set env->ex below.
|
||||
|
||||
_Jv_SetCurrentJNIEnv (env);
|
||||
}
|
||||
|
@ -1999,11 +1999,13 @@ _Jv_GetJNIEnvNewFrame (jclass klass)
|
|||
frame->marker = MARK_SYSTEM;
|
||||
frame->size = FRAME_SIZE;
|
||||
frame->next = env->locals;
|
||||
env->locals = frame;
|
||||
|
||||
for (int i = 0; i < frame->size; ++i)
|
||||
frame->vec[i] = NULL;
|
||||
|
||||
env->locals = frame;
|
||||
env->ex = NULL;
|
||||
|
||||
return env;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue