[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: two questions about gc
- From: "冶晶邓" <fatfatson@...>
- Date: Tue, 17 Jul 2007 22:30:31 +0800
there're 2 new questions confusing me:
1.what's the difference between luaC_barrierf and luaC_barrierback? i know both of them are used to keep the invariant, but why are there 2 functions?
both of them, there is an assert "lua_assert(g->gcstate != GCSfinalize && g->gcstate != GCSpause);", i know the GCPause statu is unbreakable, but it's not true for GCSfinalize, so why we can assert it here?
thanks very much~~