Skip to content
Snippets Groups Projects
Commit 62bad20a authored by wlott's avatar wlott
Browse files

Fixed forget-output-blocks to also reset *all-output-blocks*.

When using adjust-array to extent the vector of output-blocks, spec the
initial-element as nil so it doesn't just leave the 0's behind.
parent f4e5e2f1
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/new-assem.lisp,v 1.4 1992/06/22 13:52:54 wlott Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/new-assem.lisp,v 1.5 1992/07/12 19:35:19 wlott Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -704,6 +704,7 @@ ...@@ -704,6 +704,7 @@
;;; bogus SAPs, which would make all sorts of things unhappy. ;;; bogus SAPs, which would make all sorts of things unhappy.
;;; ;;;
(defun forget-output-blocks () (defun forget-output-blocks ()
(setf *all-output-blocks* nil)
(setf *available-output-blocks* nil)) (setf *available-output-blocks* nil))
;;; ;;;
(pushnew 'forget-output-blocks ext:*after-save-initializations*) (pushnew 'forget-output-blocks ext:*after-save-initializations*)
...@@ -726,7 +727,8 @@ ...@@ -726,7 +727,8 @@
(block-num offset) (block-num offset)
(truncate index output-block-size) (truncate index output-block-size)
(when (>= block-num num-blocks) (when (>= block-num num-blocks)
(setf blocks (adjust-array blocks (+ block-num 3))) (setf blocks
(adjust-array blocks (+ block-num 3) :initial-element nil))
(setf (segment-output-blocks segment) blocks)) (setf (segment-output-blocks segment) blocks))
(let ((block (or (aref blocks block-num) (let ((block (or (aref blocks block-num)
(setf (aref blocks block-num) (new-output-block))))) (setf (aref blocks block-num) (new-output-block)))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment