[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Userdata and GC activity
- From: Alex Sandro Queiroz e Silva <asandroq@...>
- Date: Mon, 17 Nov 2008 16:27:37 -0200
Florian Weimer wrote:
> Can the C memory region associated with a userdata object change its
> address during the lifetime of the object?
No, Lua uses a precise non-moving incremental mark-and-sweep
collector. It does not move memory around, which would be a bad thing
for a language designed to be embedded in C.