Declaim sb-di::valid-lisp-pointer-p inline.
authorStas Boukarev <stassats@gmail.com>
Thu, 11 Aug 2011 23:21:23 +0000 (03:21 +0400)
committerStas Boukarev <stassats@gmail.com>
Thu, 11 Aug 2011 23:21:23 +0000 (03:21 +0400)
Making it inline prevents from creating a SAP, and thus reduces
consing and improves performance. It's called a lot by
map-allocated-objects when GCing is disabled, so consing less is a
desirable property.

Reported by `lisper' on #lisp

src/code/debug-int.lisp

index 5059ce9..7569118 100644 (file)
 (sb!alien:define-alien-routine component-ptr-from-pc (system-area-pointer)
   (pc system-area-pointer))
 
+#!+gencgc (declaim (inline valid-lisp-pointer-p))
 #!+gencgc
 (sb!alien:define-alien-routine valid-lisp-pointer-p sb!alien:int
   (pointer system-area-pointer))