[cffi-devel] Memory limit when using with-foreign-pointer?

Carlo Hamalainen carlo.hamalainen at gmail.com
Fri Feb 25 04:29:13 UTC 2011


On Wed, Feb 9, 2011 at 8:54 AM, Luís Oliveira <luismbo at gmail.com> wrote:
> WITH-FOREIGN-POINTER expands to WITH-ALIEN on SBCL, which performs
> stack allocation.

Ah, thanks. It sounds like I want FOREIGN-ALLOC and FOREIGN-FREE instead.

> It's an SBCL limit (64 MB?). I don't know if you can adjust it but
> someone on sbcl-devel should know. I'm surprised it's that big,
> though. Shouldn't it be much smaller?

Actually 536870909/1048576 is about 512Mb. Strange.

-- 
Carlo Hamalainen
http://carlo-hamalainen.net




More information about the cffi-devel mailing list