X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fsysmacs.lisp;h=59b8b4510aa139a25b45c2962c2bdf6ed0859fbf;hb=cc27e35fc73e6765679d6f426ee144abdfac7c27;hp=986e7a895e8335ee9f0e28ed7ed7f6f1d8f0237a;hpb=edb227f57bcf629a9e8c3b8e6e1b37d644d8f217;p=sbcl.git diff --git a/src/code/sysmacs.lisp b/src/code/sysmacs.lisp index 986e7a8..59b8b45 100644 --- a/src/code/sysmacs.lisp +++ b/src/code/sysmacs.lisp @@ -11,14 +11,6 @@ (in-package "SB!IMPL") -(defmacro atomic-incf/symbol (symbol-name &optional (delta 1)) - #!-sb-thread - `(incf ,symbol-name ,delta) - #!+sb-thread - `(locally - (declare (optimize (safety 0) (speed 3))) - (sb!vm::locked-symbol-global-value-add ',symbol-name ,delta))) - ;;;; these are initialized in cold init (defvar *in-without-gcing*) @@ -33,6 +25,13 @@ #!+sb-thread (defvar *stop-for-gc-pending*) +;;; This one is initialized by the runtime, at thread creation. On +;;; non-x86oid gencgc targets, this is a per-thread list of objects +;;; which must not be moved during GC. It is frobbed by the code for +;;; with-pinned-objects in src/compiler/target/macros.lisp. +#!+(and gencgc (not (or x86 x86-64))) +(defvar sb!vm::*pinned-objects*) + (defmacro without-gcing (&body body) #!+sb-doc "Executes the forms in the body without doing a garbage collection. It @@ -52,7 +51,7 @@ system will be deadlocked. Since SBCL does not currently document its internal locks, application code can never be certain that this invariant is maintained." (with-unique-names (without-gcing-body) - `(flet ((,without-gcing-body () + `(dx-flet ((,without-gcing-body () ,@body)) (if *gc-inhibit* (,without-gcing-body)