[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua JIT FFI bug ?
- From: Mike Pall <mikelu-1202@...>
- Date: Tue, 21 Feb 2012 15:55:51 +0100
Olivier Goudron wrote:
> sk.data = ffi.new("char[255]")
> sv.data = ffi.new("char[255]")
Garbage collected values must be anchored (in a local variable,
Lua table, etc.). A pointer inside a cdata struct is not
considered an anchor.
Not a bug. Read: http://luajit.org/ext_ffi_semantics.html#gc
--Mike