Skip to content

Commit

Permalink
pin array storage vector, not array itself, in SBCL
Browse files Browse the repository at this point in the history
Thanks to Miroslav Urbanek for the suggestion.
  • Loading branch information
Robert Smith committed Apr 3, 2018
1 parent aa7305f commit d83151d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion with-array-pointers.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ WARNING: Do not close over these pointers or otherwise store them outside of the
`(progn ,@body)
`(let ,(mapcar #'list evaled-symbols forms)
#+sbcl
(sb-sys:with-pinned-objects (,@evaled-symbols)
(sb-sys:with-pinned-objects (,@(loop :for sym :in evaled-symbols
:collect `(sb-ext:array-storage-vector ,sym)))
(let ,(loop :for s :in symbols
:for e :in evaled-symbols
:collect `(,s (array-pointer ,e)))
Expand Down

0 comments on commit d83151d

Please sign in to comment.