Re: Can userdate have references to lua objects?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Can userdate have references to lua objects?
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2003年5月12日 12:48:04 -0300
> We have a memory leak, even though we're using a garbage collector and
> this was precisely the sort of problem that garbage collectors were
> intended to solve: dealing with circular references.
You may not like how Lua works in that case, but that does not make it
a memory leak. As long as both objects are reacheable from the program
(root set), "fail" to collect them cannot be a leak.
-- Roberto