lua-users home
lua-l archive

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


> > I assumed that whenever a thread runs luaC_collectgarbage it
> > must have the lock already. Isn't that true?
> 
> It appears this way, but in my case, wrapping 
> luaC_collectgarbage() in the lua_lock()/lua_unlock() combo 
> makes most crashes go away.
> 
> > > Ideas?  Anyone?
> > 
> > Do you have GC tag methods? Lua releases the lock to call
> > them. Maybe there is something wrong with that?
> 
> I have a nil GC tag method that has a single line in it:
> 
> lua_setgcthreshold(state, 1000000);

I cut the garbage collection tag method (for testing purposes), and the
results are no different... Random crashes accessing Lua information...
:(

Josh