Skip to content

Commit

Permalink
a step along the way to setting address space parameters in just one …
Browse files Browse the repository at this point in the history
…place
  • Loading branch information
William Harold Newman committed Oct 7, 2000
1 parent b27034c commit f3783ae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/compiler/generic/genesis.lisp
Expand Up @@ -3028,11 +3028,11 @@ initially undefined function references:~2%")
(finalize-load-time-value-noise)

;; Tell the target Lisp how much stuff we've allocated.
(cold-set '*read-only-space-free-pointer*
(cold-set 'sb!vm:*read-only-space-free-pointer*
(allocate-descriptor *read-only* 0 sb!vm:even-fixnum-type))
(cold-set '*static-space-free-pointer*
(cold-set 'sb!vm:*static-space-free-pointer*
(allocate-descriptor *static* 0 sb!vm:even-fixnum-type))
(cold-set '*initial-dynamic-space-free-pointer*
(cold-set 'sb!vm:*initial-dynamic-space-free-pointer*
(allocate-descriptor *dynamic* 0 sb!vm:even-fixnum-type))
(/show "done setting free pointers")

Expand Down
4 changes: 2 additions & 2 deletions src/compiler/x86/alloc.lisp
Expand Up @@ -101,11 +101,11 @@
;; -- WHN 19990916
;;
;; FIXME: should have a check for overflow of static space
(load-symbol-value temp sb!impl::*static-space-free-pointer*)
(load-symbol-value temp sb!vm:*static-space-free-pointer*)
(inst lea result (make-ea :byte :base temp :disp other-pointer-type))
(inst add temp boxed)
(inst add temp unboxed)
(store-symbol-value temp sb!impl::*static-space-free-pointer*)
(store-symbol-value temp sb!vm:*static-space-free-pointer*)
(inst shl boxed (- type-bits word-shift))
(inst or boxed code-header-type)
(storew boxed result 0 other-pointer-type)
Expand Down
11 changes: 8 additions & 3 deletions src/compiler/x86/parms.lisp
Expand Up @@ -208,9 +208,14 @@
sb!impl::fdefinition-object

;; free pointers
sb!impl::*read-only-space-free-pointer*
sb!impl::*static-space-free-pointer*
sb!impl::*initial-dynamic-space-free-pointer*
;;
;; Note that these are FIXNUM word counts, not (as one might
;; expect) byte counts or SAPs. The reason seems to be that by
;; representing them this way, we can avoid consing bignums.
;; -- WHN 2000-10-02
*read-only-space-free-pointer*
*static-space-free-pointer*
*initial-dynamic-space-free-pointer*

;; things needed for non-local exit
sb!impl::*current-catch-block*
Expand Down

0 comments on commit f3783ae

Please sign in to comment.