[m-rev.] trivial diff: agc: overwrite garbage with 0xDEADBEAF
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Jun 4 19:33:25 AEST 2002
Estimated hours taken: 0.1
runtime/mercury_accurate_gc.c:
When clearing the old heap entries, use a recognizable value
(0xDEADBEAF), rather than 1, which is easily mistaken for live data.
The aim of this change is to make it easier to debug problems with
the accurate garbage collector.
Workspace: /home/ceres/fjh/mercury
Index: runtime/mercury_accurate_gc.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_accurate_gc.c,v
retrieving revision 1.19
diff -u -d -r1.19 mercury_accurate_gc.c
--- runtime/mercury_accurate_gc.c 27 Mar 2002 07:35:33 -0000 1.19
+++ runtime/mercury_accurate_gc.c 3 Jun 2002 10:18:44 -0000
@@ -166,7 +166,7 @@
MR_Word *tmp_hp;
for (tmp_hp = old_heap->min; tmp_hp <= old_hp; tmp_hp++) {
- *tmp_hp = 1;
+ *tmp_hp = 0xDEADBEAF;
}
}
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list