From: Bryce McKinlay Date: Thu, 6 Jul 2006 18:25:28 +0000 (+0000) Subject: boehm.cc (_Jv_MarkObj): Mark the next_or_version field. X-Git-Tag: releases/gcc-4.2.0~2172 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ac5ccd149b619d6017eb83ba78786257225eb36;p=thirdparty%2Fgcc.git 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 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0c9d0c2016aa..3e9ec0b84a54 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 b8bd3a11e188..3b013dae3d6b 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 {