-- Bernhard Treutwein, IuK, Ref. III A 3 Bernhard.Treutwein(at)verwaltung uni-muenchen de > -----Original Message----- > From: blackbox{([at]})nowhere.xy> Behalf Of CFB Software > Sent: Friday, May 11, 2007 3:34 PM > To: BlackBox Mailing List > Subject: [BlackBox] - Memory leak bug report > > > > -----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-708197731_-_- Content-type: application/rtf Content-transfer-encoding: base64 Content-Disposition: attachment; filename="rtf-body.rtf" e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh cmRcc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2hccGFy DQo+IFxwYXINCj4gXH19AD3Aaw== ----boundary-LibPST-iamunique-708197731_-_---Received on Fri May 11 2007 - 16:37:06 UTC
This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:36 UTC