OSDN Git Service

* jni.cc (_Jv_GetJNIEnvNewFrame): Set env->ex in all cases.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Nov 2002 08:00:48 +0000 (08:00 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Nov 2002 08:00:48 +0000 (08:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58971 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/jni.cc

index 33e0742..3024eb0 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-10  Tom Tromey  <tromey@redhat.com>
+
+       * jni.cc (_Jv_GetJNIEnvNewFrame): Set env->ex in all cases.
+
 2002-11-09  Tom Tromey  <tromey@redhat.com>
 
        * java/applet/Applet.java, java/applet/AppletContext.java,
index 9865ce4..0005578 100644 (file)
@@ -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;
 }