Allowing GC in Allegro CL SMP during foreign function calls

Martin Simmons martin at lispworks.com
Fri Aug 2 16:35:50 UTC 2013


>>>>> On Fri, 2 Aug 2013 01:54:20 +0100, Luís Oliveira said:
> 
> On Wed, Jul 31, 2013 at 10:15 AM, Stelian Ionescu <sionescu at cddr.org> wrote:
> > SBCL never disables GC globally, and I don't think that CCL, ECL or ABCL
> > do that either.
> > http://www.lispworks.com/documentation/lw61/FLI/html/fli-94.htm#pgfId-1070272 has no mention of GC, so it would seem that among SMP Lisps Allegro is the only one to do sophisticated stuff. CMUCL and Clisp are currently single-threaded so GC is implicitly disabled during foreign calls.
> 
> Precise confirmation would be nice -- a test perhaps -- would be nice.

I confirm it for LispWorks -- entering foreign code never prevents the GC from
running in another Lisp thread if needed.

-- 
Martin Simmons
LispWorks Ltd
http://www.lispworks.com/



More information about the cffi-devel mailing list