This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[BC] Patch: FYI: mark `throws' field


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);
 	    }
 	}
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]