[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: object addresses in Lua
- From: Doug Currie <doug.currie@...>
- Date: Fri, 27 May 2011 10:46:24 -0400
On May 27, 2011, at 2:28 AM, Xingzhi Pan wrote:
> wondering if it's possible to replace it with a moving collector (e.g., a copying collector)
There are many Lua libraries written in C that depend on userdata not moving. If your implementation supports C libraries, then you will need to keep these pinned down. If your implementation does not support loadable libraries, then you may be able to eliminate userdata altogether.
There are some Lua libraries written in C that depend on threads not moving.