X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fsysmacs.lisp;h=aca1cc59e23687ce4b5f616f956c3ce6dd82f9d6;hb=e94fe1bcf814af45ca9eeb4721df17c58afa4d76;hp=3556bc1c782440eeda9cf6da1af97b9da854a724;hpb=dcf8b8ccc1e15a5c1c6aba00204b7d3a81827acc;p=sbcl.git diff --git a/src/code/sysmacs.lisp b/src/code/sysmacs.lisp index 3556bc1..aca1cc5 100644 --- a/src/code/sysmacs.lisp +++ b/src/code/sysmacs.lisp @@ -49,11 +49,13 @@ system will be deadlocked. Since SBCL does not currently document its internal locks, application code can never be certain that this invariant is maintained." `(unwind-protect - (without-interrupts - (let ((*gc-inhibit* t)) - ,@body)) - ;; the test is racy, but it can err only on the overeager side - (sb!kernel::maybe-handle-pending-gc))) + (let* ((*interrupts-enabled* nil) + (*gc-inhibit* t)) + ,@body) + (when (or (and *interrupts-enabled* *interrupt-pending*) + (and (not *gc-inhibit*) + (or *gc-pending* #!+sb-thread *stop-for-gc-pending*))) + (sb!unix::receive-pending-interrupt)))) ;;; EOF-OR-LOSE is a useful macro that handles EOF.