From 0ac5ccd149b619d6017eb83ba78786257225eb36 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Thu, 6 Jul 2006 18:25:28 +0000 Subject: [PATCH] boehm.cc (_Jv_MarkObj): Mark the next_or_version field. 2006-07-06 Bryce McKinlay * boehm.cc (_Jv_MarkObj): Mark the next_or_version field. From-SVN: r115227 --- libjava/ChangeLog | 4 ++++ libjava/boehm.cc | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0c9d0c2016a..3e9ec0b84a5 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2006-07-06 Bryce McKinlay + + * boehm.cc (_Jv_MarkObj): Mark the next_or_version field. + 2006-07-06 Thomas Fitzsimmons * configure.ac (ac_configure_args): Add --with-native-libdir. diff --git a/libjava/boehm.cc b/libjava/boehm.cc index b8bd3a11e18..3b013dae3d6 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -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 { -- 2.30.2