[m-rev.] diff: fix GC compile problem on Solaris

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Apr 22 16:26:49 AEST 2001


Estimated hours taken: 0.75
Branches: main

boehm_gc/include/private/gcconfig.h:
	Work around a problem (a Solaris bug?) where USERLIMIT was
	undefined on a sparc-sun-solaris2.7 system -- use HEURISTIC2
	rather than USRSTACK for figuring out the stack bottom.

Workspace: /home/dd/mercury/test_mercury_taifun/mercury
Index: boehm_gc/include/private/gcconfig.h
===================================================================
RCS file: /home/staff/zs/imp/mercury/boehm_gc/include/private/gcconfig.h,v
retrieving revision 1.4
diff -u -d -r1.4 gcconfig.h
--- boehm_gc/include/private/gcconfig.h	2001/04/10 13:20:38	1.4
+++ boehm_gc/include/private/gcconfig.h	2001/04/22 06:14:34
@@ -697,8 +697,11 @@
 /*	HEURISTIC1 reportedly no longer works under 2.7.  		*/
 /*  	HEURISTIC2 probably works, but this appears to be preferable.	*/
 #       include <sys/vmparam.h>
+#ifdef _USERLIMIT
 #	define STACKBOTTOM USRSTACK
+#else
 #	define HEURISTIC2
+#endif
 #	include <unistd.h>
 #       define GETPAGESIZE()  sysconf(_SC_PAGESIZE)
 		/* getpagesize() appeared to be missing from at least one */
-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  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