This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[BC] Patch: FYI: mark `throws' field
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 18 Oct 2004 14:26:23 -0600
- Subject: [BC] Patch: FYI: mark `throws' field
- Reply-to: tromey at redhat dot com
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);
}
}