From 2216330b380c4a931ea7564e0b5a7d4bbec75851 Mon Sep 17 00:00:00 2001 From: Nikodemus Siivola Date: Fri, 30 Nov 2007 17:46:09 +0000 Subject: [PATCH] 1.0.12.9: don't limit TOUCH-OBJECT to descriptor-regs * Allows objects known to be FIXNUM to be pinned. Question: why is a FIXNUM not acceptable to a DESCRIPTOR-REG? --- src/compiler/x86-64/c-call.lisp | 2 +- src/compiler/x86/c-call.lisp | 2 +- tests/compiler.pure.lisp | 7 +++++++ version.lisp-expr | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/compiler/x86-64/c-call.lisp b/src/compiler/x86-64/c-call.lisp index 0589617..afbe857 100644 --- a/src/compiler/x86-64/c-call.lisp +++ b/src/compiler/x86-64/c-call.lisp @@ -340,7 +340,7 @@ ;;; that GC won't move them while foreign functions go to work. (define-vop (touch-object) (:translate touch-object) - (:args (object :scs (descriptor-reg))) + (:args (object)) (:ignore object) (:policy :fast-safe) (:arg-types t) diff --git a/src/compiler/x86/c-call.lisp b/src/compiler/x86/c-call.lisp index 8c756b3..023c99b 100644 --- a/src/compiler/x86/c-call.lisp +++ b/src/compiler/x86/c-call.lisp @@ -333,7 +333,7 @@ ;;; that GC won't move them while foreign functions go to work. (define-vop (touch-object) (:translate touch-object) - (:args (object :scs (descriptor-reg))) + (:args (object)) (:ignore object) (:policy :fast-safe) (:arg-types t) diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index 5d12ac0..ce69513 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -2316,3 +2316,10 @@ t) t (error "~a" y))))) + +;;; Compiling W-P-O when the pinned objects are known to be fixnums +;;; or characters. +(compile nil '(lambda (x y) + (declare (fixnum y) (character x)) + (sb-sys:with-pinned-objects (x y) + (some-random-function)))) diff --git a/version.lisp-expr b/version.lisp-expr index 15217fe..8ab1483 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"1.0.12.8" +"1.0.12.9" -- 1.7.10.4