[BC] Patch: FYI: mark `throws' field
Tom Tromey
tromey@redhat.com
Mon Oct 18 20:26:00 GMT 2004
I'm checking this in on the BC branch.
While trying to get Eclipse 3 working again, I noticed we weren't
marking a field. Some day we really need to automate this so we don't
keep introducing regressions here.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* boehm.cc (_Jv_MarkObj): Mark `throws'.
Index: boehm.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/boehm.cc,v
retrieving revision 1.42.12.8
diff -u -r1.42.12.8 boehm.cc
--- boehm.cc 18 Oct 2004 20:03:58 -0000 1.42.12.8
+++ boehm.cc 18 Oct 2004 20:25:21 -0000
@@ -158,6 +158,11 @@
MAYBE_MARK (p, mark_stack_ptr, mark_stack_limit, c);
p = (GC_PTR) c->methods[i].signature;
MAYBE_MARK (p, mark_stack_ptr, mark_stack_limit, c);
+
+ // Note that we don't have to mark each individual throw
+ // separately, as these are stored in the constant pool.
+ p = (GC_PTR) c->methods[i].throws;
+ MAYBE_MARK (p, mark_stack_ptr, mark_stack_limit, c);
}
}
More information about the Java-patches
mailing list