From: Meinrad Recheis Date: 2008-01-06T05:18:15+09:00 Subject: Re: Manual Memory Management ------=_Part_7888_28574300.1199564301618 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Jan 5, 2008 9:14 PM, Meinrad Recheis wrote: > On Jan 5, 2008 8:35 PM, Marcin Raczkowski wrote: > [...] > > > so i understand invoking .clear on the array automatically collects > > memory? > > > > no. you still have to wait for the next GC cycle for that memory to be > freed. > oops, my above statement is not true. sorry > > > > what if large_array was enclosed in lambda somewhere ? will it's value > > change also? > > > > yes. > > -- henon > > ------=_Part_7888_28574300.1199564301618 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On Jan 5, 2008 9:14 PM, Meinrad Recheis <meinrad.recheis@gmail.com> wrote:
On Jan 5, 2008 8:35 PM, Marcin Raczkowski <mailing.mr@gmail.com> wrote:
[...]

so i understand invoking .clear on the array automatically collects memory?

no. you still have to wait for the next GC cycle for that memory to be freed.
oops, my above statement is not true. sorry


what if large_array was enclosed in lambda somewhere ? will it's value
change also?

yes.

-- henon


------=_Part_7888_28574300.1199564301618--