OSDN Git Service

2006-07-06 Bryce McKinlay <mckinlay@redhat.com>
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jul 2006 18:25:28 +0000 (18:25 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jul 2006 18:25:28 +0000 (18:25 +0000)
        * boehm.cc (_Jv_MarkObj): Mark the next_or_version field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115227 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/boehm.cc

index 0c9d0c2..3e9ec0b 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 b8bd3a1..3b013da 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
     {