verify.cc (state::clean_subrs): Clear seen_subrs.
authorJeff Sturm <jsturm@one-point.com>
Tue, 2 Dec 2003 03:42:40 +0000 (03:42 +0000)
committerJeff Sturm <jsturm@gcc.gnu.org>
Tue, 2 Dec 2003 03:42:40 +0000 (03:42 +0000)
* verify.cc (state::clean_subrs): Clear seen_subrs.
(state::copy): Walk seen_subrs from copy, not `this'.
Don't clear seen_subrs.

From-SVN: r74152

libjava/ChangeLog
libjava/verify.cc

index 32ff83c8c136ce84cfe013826e99f0e90beb97d7..a60d6cd55a14d2373ffd845da0980831fad852ca 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-01  Jeff Sturm  <jsturm@one-point.com>
+
+       * verify.cc (state::clean_subrs): Clear seen_subrs.
+       (state::copy): Walk seen_subrs from copy, not `this'.
+       Don't clear seen_subrs.
+
 2003-12-01  Kim Ho <kho@redhat.com>
 
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create):
index 34583bdc180e84bbe645d205bb5ce63ab01eca0a..e085938ce784e86e9798ad661a3af1215b01822c 100644 (file)
@@ -1010,6 +1010,7 @@ private:
          _Jv_Free (info);
          info = next;
        }
+      seen_subrs = NULL;
     }
 
     void copy (const state *copy, int max_stack, int max_locals,
@@ -1035,11 +1036,10 @@ private:
       clean_subrs ();
       if (copy->seen_subrs)
        {
-         for (subr_info *info = seen_subrs; info != NULL; info = info->next)
+         for (subr_info *info = copy->seen_subrs;
+              info != NULL; info = info->next)
            add_subr (info->pc);
        }
-      else
-       seen_subrs = NULL;
 
       this_type = copy->this_type;
       // Don't modify `next'.