]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
boehm.cc (_Jv_MarkObj): Mark the next_or_version field.
authorBryce McKinlay <mckinlay@redhat.com>
Thu, 6 Jul 2006 18:25:28 +0000 (18:25 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Thu, 6 Jul 2006 18:25:28 +0000 (19:25 +0100)
2006-07-06  Bryce McKinlay <mckinlay@redhat.com>

        * boehm.cc (_Jv_MarkObj): Mark the next_or_version field.

From-SVN: r115227

libjava/ChangeLog
libjava/boehm.cc

index 0c9d0c2016aa1e25e8e1a19ec6d7512775160101..3e9ec0b84a54f70ac6a9215707bfda8f09ffb735 100644 (file)
@@ -1,3 +1,7 @@
+2006-07-06  Bryce McKinlay <mckinlay@redhat.com>
+
+       * boehm.cc (_Jv_MarkObj): Mark the next_or_version field.
+
 2006-07-06  Thomas Fitzsimmons  <fitzsim@redhat.com>
 
        * configure.ac (ac_configure_args): Add --with-native-libdir.
index b8bd3a11e1881d9050b475a5cd1e9ac14dc7fadc..3b013dae3d6bfa8ae3d1b4111c64e2874c7ddc87 100644 (file)
@@ -167,6 +167,11 @@ _Jv_MarkObj (void *addr, void *msp, void *msl, void *env)
       MAYBE_MARK (p, mark_stack_ptr, mark_stack_limit, c);
       p = (GC_PTR) c->aux_info;
       MAYBE_MARK (p, mark_stack_ptr, mark_stack_limit, c);
+
+      // The class chain must be marked for runtime-allocated Classes
+      // loaded by the bootstrap ClassLoader.
+      p = (GC_PTR) c->next_or_version;
+      MAYBE_MARK (p, mark_stack_ptr, mark_stack_limit, c);
     }
   else
     {