[Openmcl-devel] with-autorelease-pool question

Gary Byers gb at clozure.com
Tue Aug 22 10:38:43 PDT 2006

It would need to be explicitly called.  The colon commands in
standard listeners try to release the old one and create a new
one as atomically as they can, IIRC.

I honestly don't know whether NSThread does any cleanup of autorelease
pools.  I'd guess that it doesn't (because they're intended to be
used dynamically and just having one "left over" when the thread
terminates seems anomalous), but I don't know for sure.

On Tue, 22 Aug 2006, Phil wrote:

> Gary Byers wrote:
>> You can suppress these messages in a SLIME REPL just by calling
>> CREATE-AUTORELEASE-POOL (or whatever it's called) in the SLIME
>> REPL, and if you poke around in the sources you can probably
>> find the primitives that the other colon-commands uses.
> Would this actually release allocated memory when the thread terminates
> or just cause the leak to be silent? (i.e. does the release method need
> to be explicitly called as it is in with-autorelease-pool or is it
> implicitly called?)
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel

More information about the Openmcl-devel mailing list