X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Froom.lisp;h=4ba273d315a1a036a914caa495f0730c0b385d3a;hb=0b5610d8a220a4b20cbeac958953ca4d67c00038;hp=15a774271a0a0e72e4af037f0037f71b83c7bec3;hpb=a530bbe337109d898d5b4a001fc8f1afa3b5dc39;p=sbcl.git diff --git a/src/code/room.lisp b/src/code/room.lisp index 15a7742..4ba273d 100644 --- a/src/code/room.lisp +++ b/src/code/room.lisp @@ -10,9 +10,6 @@ ;;;; files for more information. (in-package "SB!VM") - -(file-comment - "$Header$") ;;;; type format database @@ -110,20 +107,23 @@ ;;;; MAP-ALLOCATED-OBJECTS -(declaim (type fixnum *static-space-free-pointer* - *read-only-space-free-pointer* )) +;;; Since they're represented as counts of words, we should never +;;; need bignums to represent these: +(declaim (type fixnum + *static-space-free-pointer* + *read-only-space-free-pointer*)) (defun space-bounds (space) (declare (type spaces space)) (ecase space (:static - (values (int-sap (static-space-start)) + (values (int-sap static-space-start) (int-sap (* *static-space-free-pointer* word-bytes)))) (:read-only - (values (int-sap (read-only-space-start)) + (values (int-sap read-only-space-start) (int-sap (* *read-only-space-free-pointer* word-bytes)))) (:dynamic - (values (int-sap (current-dynamic-space-start)) + (values (int-sap dynamic-space-start) (dynamic-space-free-pointer))))) ;;; Return the total number of bytes used in SPACE.