This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: kill leftover GC_DEBUG code
- To: java-patches at sources dot redhat dot com
- Subject: Patch: kill leftover GC_DEBUG code
- From: Anthony Green <green at cygnus dot com>
- Date: Mon, 4 Sep 2000 14:09:23 -0700
- Reply-to: green at cygnus dot com
Boehm removed some of the test code in his collector, but not all. This
finishes the job off.
2000-09-04 Anthony Green <green@redhat.com>
Fix for PR java.io/230:
* mark.c (GC_mark_from_mark_stack): Remove call to
GC_debug_object_start.
* gc_priv.h (GC_debug_object_start): Remove prototype.
Index: boehm-gc//gc_priv.h
===================================================================
RCS file: /cvs/java/libgcj/boehm-gc/gc_priv.h,v
retrieving revision 1.13
diff -u -p -u -r1.13 gc_priv.h
--- gc_priv.h 2000/08/02 19:46:07 1.13
+++ gc_priv.h 2000/09/04 21:06:21
@@ -1772,10 +1772,6 @@ void GC_print_obj(/* ptr_t p */);
/* P points to somewhere inside an object with */
/* debugging info. Print a human readable */
/* description of the object to stderr. */
-ptr_t GC_debug_object_start(/* ptr_t p */);
- /* P points to the start of an object that may */
- /* have debug info at its head. Return the */
- /* start of the real data. */
extern void (*GC_check_heap)();
/* Check that all objects in the heap with */
/* debugging info are intact. Print */
Index: boehm-gc//mark.c
===================================================================
RCS file: /cvs/java/libgcj/boehm-gc/mark.c,v
retrieving revision 1.7
diff -u -p -u -r1.7 mark.c
--- mark.c 2000/05/10 21:59:16 1.7
+++ mark.c 2000/09/04 21:06:21
@@ -530,9 +530,6 @@ void GC_mark_from_mark_stack()
case DS_PROC:
GC_mark_stack_top_reg--;
credit -= PROC_BYTES;
-#ifdef GC_DEBUG
- current_p = GC_debug_object_start(current_p);
-#endif
GC_mark_stack_top_reg =
(*PROC(descr))
(current_p, GC_mark_stack_top_reg,
AG
--
Anthony Green Red Hat
Sunnyvale, California