1.0.24.3: sanity check address spaces
[sbcl.git] / src / compiler / generic / early-vm.lisp
index 57c2d9d..2a39fc3 100644 (file)
   (min #x1fffffffffffff most-positive-fixnum))
 (def!constant most-negative-exactly-double-float-fixnum
   (max #x-1fffffffffffff most-negative-fixnum))
+
+;;;; Point where continuous area starting at dynamic-space-start bumps into
+;;;; next space.
+#!+gencgc
+(def!constant max-dynamic-space-end
+    (let ((stop (1- (ash 1 n-word-bits)))
+          (start dynamic-space-start))
+      (dolist (other-start (list read-only-space-start static-space-start linkage-table-space-start))
+        (when (< start other-start)
+          (setf stop (min stop other-start))))
+      stop))