1 ;;;; This file contains some parameterizations of various VM
2 ;;;; attributes common to all architectures.
4 ;;;; This software is part of the SBCL system. See the README file for
7 ;;;; This software is derived from the CMU CL system, which was
8 ;;;; written at Carnegie Mellon University and released into the
9 ;;;; public domain. The software is in the public domain and is
10 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
11 ;;;; files for more information.
15 (def!macro !configure-dynamic-space-end (&optional default)
16 (with-open-file (f "output/dynamic-space-size.txt")
17 (let ((line (read-line f)))
18 (multiple-value-bind (number end)
19 (parse-integer line :junk-allowed t)
21 (let* ((ext (subseq line end))
22 (mult (cond ((or (zerop (length ext))
23 (member ext '("MB MIB") :test #'equalp))
25 ((member ext '("GB" "GIB") :test #'equalp)
28 (error "Invalid --dynamic-space-size=~A" line)))))
29 `(+ dynamic-space-start ,(* number mult)))
31 `(+ dynamic-space-start
34 (64 (expt 2 30))))))))))
36 (defparameter *c-callable-static-symbols*
39 sb!kernel::internal-error
40 sb!kernel::control-stack-exhausted-error
41 sb!kernel::binding-stack-exhausted-error
42 sb!kernel::alien-stack-exhausted-error
43 sb!kernel::heap-exhausted-error
44 sb!kernel::undefined-alien-variable-error
45 sb!kernel::undefined-alien-function-error
46 sb!kernel::memory-fault-error
47 sb!kernel::unhandled-trap-error
48 sb!di::handle-breakpoint
49 sb!di::handle-single-step-trap
51 #!+win32 sb!kernel::handle-win32-exception))
53 (defparameter *common-static-symbols*
56 ;; filled in by the C code to propagate to Lisp
57 *posix-argv* *core-string*
59 ;; free pointers. Note that these are FIXNUM word counts, not (as
60 ;; one might expect) byte counts or SAPs. The reason seems to be
61 ;; that by representing them this way, we can avoid consing
62 ;; bignums. -- WHN 2000-10-02
63 *read-only-space-free-pointer*
64 *static-space-free-pointer*
66 ;; things needed for non-local-exit
68 *current-unwind-protect-block*
79 *free-interrupt-context-index*
80 sb!unix::*allow-with-interrupts*
81 sb!unix::*interrupts-enabled*
82 sb!unix::*interrupt-pending*
90 #!+sb-thread *stop-for-gc-pending*
91 #!+sb-thread *free-tls-index*
92 #!+sb-thread *tls-index-lock*
94 ;; Dispatch tables for generic array access
95 sb!impl::%%data-vector-reffers%%
96 sb!impl::%%data-vector-reffers/check-bounds%%
97 sb!impl::%%data-vector-setters%%
98 sb!impl::%%data-vector-setters/check-bounds%%
100 ;; non-x86oid gencgc object pinning
101 #!+(and gencgc (not (or x86 x86-64)))
104 ;; hash table weaknesses
110 ;;; Number of entries in the thread local storage. Limits the number
111 ;;; of symbols with thread local bindings.
112 (def!constant tls-size 4096)
116 (def!constant +highest-normal-generation+ 5)
117 (def!constant +pseudo-static-generation+ 6))
121 trace-table-call-site
122 trace-table-fun-prologue
123 trace-table-fun-epilogue)