X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fsysmacs.lisp;h=3ca4ff84d193554e466d29fd37819acca390d7ec;hb=8ae4206d774745ea928fc89a13ebf34de506aa6e;hp=986e7a895e8335ee9f0e28ed7ed7f6f1d8f0237a;hpb=edb227f57bcf629a9e8c3b8e6e1b37d644d8f217;p=sbcl.git diff --git a/src/code/sysmacs.lisp b/src/code/sysmacs.lisp index 986e7a8..3ca4ff8 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