Re: Userdata memory is not freed
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Userdata memory is not freed
- From: Shmuel Zeigerman <shmuz@...>
- Date: 2007年4月19日 17:46:34 +0200
Roberto Ierusalimschy wrote:
When a userdata has a __gc method, the first collection triggers the
finalizer, but the object is still alive (because the finalizer gets it
as a parameter, and may even resurect it). Only the next collection will
free the object. (Java has a similar behavior.)
Oh, thanks, didn't know that (should it be mentioned in the Manual?)
And why Luiz had different results then?
--
Shmuel