diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-06 18:25:28 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-06 18:25:28 +0000 |
commit | ccee5c089f583b321b20913085bc42a2263ac576 (patch) | |
tree | c357efca62a7075672e7593eda7ad0c4cb312709 /libjava/boehm.cc | |
parent | 70532e28bc7eded4a4d5d1fdd248b794526fbd9a (diff) | |
download | gcc-ccee5c089f583b321b20913085bc42a2263ac576.tar.gz |
2006-07-06 Bryce McKinlay <mckinlay@redhat.com>
* 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
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |