Skip to content
Snippets Groups Projects
Commit b105d646 authored by ram's avatar ram
Browse files

Changed WITHOUT-GCING to use UNWIND-PROTECT instead of MULTIPLE-VALUE-PROG1 so

that we don't lose GC triggers.
parent 130ffd0d
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/sysmacs.lisp,v 1.7 1991/02/08 13:36:22 ram Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/sysmacs.lisp,v 1.8 1991/04/22 15:25:33 ram Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -46,7 +46,7 @@
(defmacro without-gcing (&rest body)
"Executes the forms in the body without doing a garbage collection."
`(multiple-value-prog1
`(unwind-protect
(let ((*gc-inhibit* t))
,@body)
(when (and *need-to-collect-garbage* (not *gc-inhibit*))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment