From d0c874d154c7f1ef7cef614be0e026f9ac880a35 Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Thu, 3 Feb 2005 15:08:41 +0000
Subject: [PATCH] Martin Rydstrom reports that CMUCL with the default heap size
 doesn't work on Solaris 10. (Eventually, he gets a GC lossage).  But setting
 -dynamic-space-size 256 works fine.  The difference is that the default is
 256 MB - 32 KB.

So change the default to just 256 MB.  We don't understand why the old
default causes funny things to happen on Solaris 10.
---
 lisp/sparc-validate.h | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/lisp/sparc-validate.h b/lisp/sparc-validate.h
index 1314dbd22..293fb8364 100644
--- a/lisp/sparc-validate.h
+++ b/lisp/sparc-validate.h
@@ -1,6 +1,6 @@
 /*
 
- $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/sparc-validate.h,v 1.19 2005/01/13 19:55:00 fgilham Exp $
+ $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/sparc-validate.h,v 1.20 2005/02/03 15:08:41 rtoy Exp $
 
  This code was written as part of the CMU Common Lisp project at
  Carnegie Mellon University, and has been placed in the public domain.
@@ -110,7 +110,17 @@
 #define DYNAMIC_1_SPACE_START	(0x80000000)
 
 /* The default dynamic space to allocate */
+/*
+ * On Solaris 10, Martin Rydstrom reports that subtracting off
+ * SPARSE_BLOCK_SIZE causes CMUCL not to work (GC lossage).  But
+ * specifying -dynamic-space-size 256 works fine.  I don't understand
+ * how that can be, but we lets not subtract it off.
+ */
+#if 0
 #define DEFAULT_DYNAMIC_SPACE_SIZE  	(0x10000000 - SPARSE_BLOCK_SIZE) /* 256 MB - 32 KB */
+#else
+#define DEFAULT_DYNAMIC_SPACE_SIZE  	(0x10000000) /* 256 MB */
+#endif
 
 /* The maximum dynamic space that we can allocate */
 #ifdef GENCGC
-- 
GitLab