[m-rev.] trivial diff: fix MR_GC_check() comment

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Mar 3 18:45:54 AEDT 2003


Estimated hours taken: 0.1
Branches: main

runtime/mercury_wrapper.c:
	Fix an out-of-date comment.

Workspace: /home/ceres/fjh/mercury
Index: runtime/mercury_wrapper.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_wrapper.c,v
retrieving revision 1.114
diff -u -d -r1.114 mercury_wrapper.c
--- runtime/mercury_wrapper.c	8 Nov 2002 00:45:48 -0000	1.114
+++ runtime/mercury_wrapper.c	23 Feb 2003 08:35:29 -0000
@@ -85,10 +85,11 @@
 /*
 ** MR_heap_margin_size is used for accurate GC with the MLDS->C back-end.
 ** It is used to decide when to actually do a garbage collection.
-** At each call to MR_GC_check(), which is normally done on entry
-** to each C function, we check whether there is less than this
+** At each call to MR_GC_check(), which is normally done before
+** each allocation, we check whether there is less than this
 ** amount of heap space still available, and if not, we call
 ** MR_garbage_collect().
+**
 ** Like the sizes above, it is measured in kilobytes
 ** (but we later multiply by 1024 to convert to bytes).
 */

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