lua-users home
lua-l archive

Re: lua_gc()

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 2 Aug 2006, at 13:59, D Burgess wrote:
Luiz Henrique de Figueiredo wrote:
Not with the official API. What are you trying to accomplish?
I am trying to find/fix a bug in my code.
I have a 1:1 relationship between OS threads and Lua threads
and only one of the OS threads executes at a time.
I am using lua_resume(), all things start from C.
It appears that a garabge collect in thread A is causing the contents
of the thread stack in thread B to be collected.
This only happens under great stress ( a test program that creates
a million tables being executed in two different threads).
How many CPUs are you running on?
drj

AltStyle によって変換されたページ (->オリジナル) /