[m-rev.] diff: fix gc.garbage_collect for asm_fast.agc

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Nov 1 16:30:32 AEDT 2003


Estimated hours taken: 1
Branches: main

library/gc.m:
	Fix a bug: in low-level C accurate GC grades, garbage_collect was
	calling the high-level C routine to do a collection, which would
	crash.  Instead, just do nothing (and add an XXX comment that this
	routine is not implemented for LLDS agc grades).

Workspace: /home/ceres/fjh/mercury
Index: library/gc.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/gc.m,v
retrieving revision 1.12
diff -u -d -r1.12 gc.m
--- library/gc.m	24 Jun 2002 10:21:08 -0000	1.12
+++ library/gc.m	13 Oct 2003 08:31:18 -0000
@@ -50,7 +50,11 @@
 
 	GC_gcollect();
 #elif defined(MR_NATIVE_GC)
+  #ifdef MR_HIGHLEVEL_CODE
 	MR_garbage_collect();
+  #else
+  	/* XXX not yet implemented */
+  #endif
 #endif
 ").
 garbage_collect :-

-- 
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