trivial diff: add MR_free_heap
Simon Taylor
stayl at cs.mu.OZ.AU
Mon Aug 3 13:23:53 AEST 1998
Estimated hours taken: 0.1
runtime/mercury_heap.h
Added a macro MR_free_heap() which calls GC_free() if CONSERVATIVE_GC
is defined, and does nothing otherwise.
Index: mercury_heap.h
===================================================================
RCS file: /home/staff/zs/imp/mercury/runtime/mercury_heap.h,v
retrieving revision 1.7
diff -u -t -u -r1.7 mercury_heap.h
--- mercury_heap.h 1998/07/16 14:38:16 1.7
+++ mercury_heap.h 1998/08/02 08:28:51
@@ -88,6 +88,8 @@
(void)0 \
)
+ #define MR_free_heap(ptr) GC_free((ptr))
+
#else /* not CONSERVATIVE_GC */
#define tag_incr_hp(dest, tag, count) \
@@ -125,6 +127,8 @@
#define hp_alloc(count) incr_hp(LVALUE_CAST(Word, MR_hp), count)
#define hp_alloc_atomic(count) incr_hp_atomic(LVALUE_CAST(Word, MR_hp), count)
+
+ #define MR_free_heap(ptr) ((void)0)
#endif /* not CONSERVATIVE_GC */
More information about the developers
mailing list