[m-rev.] diff: remove boehm GC workaround

Peter Wang wangp at students.csse.unimelb.edu.au
Tue Sep 12 17:02:33 AEST 2006


Estimated hours taken: 0
Branches: main

runtime/mercury_memory.c:
	Remove a workaround which is no longer needed with Boehm GC 7.0.

Index: runtime/mercury_memory.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/runtime/mercury_memory.c,v
retrieving revision 1.36
diff -u -r1.36 mercury_memory.c
--- runtime/mercury_memory.c	21 Apr 2006 01:04:47 -0000	1.36
+++ runtime/mercury_memory.c	6 Sep 2006 05:54:39 -0000
@@ -325,15 +325,6 @@
 	void	*ptr;
 
 #ifdef	MR_CONSERVATIVE_GC
-#ifdef	GC_REDIRECT_TO_LOCAL
-	/*
-	** Work around a bug in Boehm GC <= 6.7.
-	** It appears this problem is not in 7.0alpha5.
-	*/
-	if (num_bytes == 0) {
-		return NULL;
-	}
-#endif
 	ptr = GC_MALLOC(num_bytes);
 #else
 	ptr = malloc(num_bytes);
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list