----boundary-LibPST-iamunique-1740082750_-_-
Content-type: text/plain
> -----Original Message-----
> From: blackbox{([at]})nowhere.xy> Behalf Of Alexander Iljin
> Sent: Friday, 11 May 2007 6:15 PM
> To: BlackBox Mailing List
> Subject: [BlackBox] - Memory leak bug report
>
> I think the Sleep has nothing to do with it, since we don't use
> HostMenus' main event-processing loop in this case.
> The garbage collector should be invoked by the NEW routine
> (implemented
> in the Kernel module) when there is not enough free memory to allocate
> the requested object. For some reason it does not collect unused
> variables, but requests more memory from the OS instead.
> As Ilya Ermakov at oberoncore.ru have noted, this may have
> something to
> do with the fact that file variables have a finalizer attached. The
> finalized variables are handled differently, cf. Kernel.Collect and
> Kernel.FastCollect.
>
An additional clue:
If you make an explicit call to Kernel.Collect in the loop e.g. after
the call to Sleep, then the memory of the unused variables is
successfully collected and the leak 'goes away'.
Regards,
Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-1740082750_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS1c
cGFyDQo+IEZyb206IGJsYWNrYm94QG9iZXJvbi5jaCBbbWFpbHRvOmJsY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