CMUCL commit: src (general-info/release-20b.txt lisp/x86-validate.h)

Raymond Toy rtoy at common-lisp.net
Fri May 21 21:26:53 CEST 2010


    Date: Friday, May 21, 2010 @ 15:26:53
  Author: rtoy
    Path: /project/cmucl/cvsroot/src

Modified: general-info/release-20b.txt lisp/x86-validate.h

lisp/x86-validate.h:
o Maximum dynamic space size for darwin was too large.

general-info/release-20b.txt
o Update.


------------------------------+
 general-info/release-20b.txt |    3 +++
 lisp/x86-validate.h          |   11 ++++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)


Index: src/general-info/release-20b.txt
diff -u src/general-info/release-20b.txt:1.26 src/general-info/release-20b.txt:1.27
--- src/general-info/release-20b.txt:1.26	Tue May 18 22:49:40 2010
+++ src/general-info/release-20b.txt	Fri May 21 15:26:52 2010
@@ -54,6 +54,9 @@
     - A new switch, -help, has been added.  These print out brief
       summary of the available command line switches and then exits.
       You may also use --help, which is an alias for -help.
+    - CMUCL no longer crashes on Mac OS X if the dynamic space size is
+      too large.  This was caused by an erroneous value for the
+      maximum dynamic space size. 
 
   * ANSI compliance fixes:
     - COMPILE will update the macro-function if the specified name
Index: src/lisp/x86-validate.h
diff -u src/lisp/x86-validate.h:1.30 src/lisp/x86-validate.h:1.31
--- src/lisp/x86-validate.h:1.30	Mon Feb  1 11:12:04 2010
+++ src/lisp/x86-validate.h	Fri May 21 15:26:53 2010
@@ -3,7 +3,7 @@
  * This code was written as part of the CMU Common Lisp project at
  * Carnegie Mellon University, and has been placed in the public domain.
  *
- *  $Header: /project/cmucl/cvsroot/src/lisp/x86-validate.h,v 1.30 2010-02-01 16:12:04 rtoy Exp $
+ *  $Header: /project/cmucl/cvsroot/src/lisp/x86-validate.h,v 1.31 2010-05-21 19:26:53 rtoy Exp $
  *
  */
 
@@ -139,7 +139,16 @@
 
 #define DYNAMIC_0_SPACE_START	(SpaceStart_TargetDynamic)
 #ifdef GENCGC
+#if defined(DARWIN)
+/*
+ * On Darwin, /usr/lib/dyld appears to always be loaded at address
+ * #x8fe2e000.  Hence, the maximum dynamic space size is 1206050816
+ * bytes, or just over 1.150 GB.  Set the limit to 1.150 GB.
+ */
+#define DYNAMIC_SPACE_SIZE	(0x47E00000U)	/* 1.150GB */
+#else
 #define DYNAMIC_SPACE_SIZE	(0x67800000U)	/* 1.656GB */
+#endif
 #else
 #define DYNAMIC_SPACE_SIZE	(0x04000000U)	/* 64MB */
 #endif



More information about the cmucl-commit mailing list