Remove bogus assertion for GC estimate vs. threshold.

This commit is contained in:
Mike Pall 2011-06-09 01:34:10 +02:00
parent 8c32b38ca3
commit 96cc99bd6a

View File

@ -674,7 +674,6 @@ int LJ_FASTCALL lj_gc_step(lua_State *L)
do { do {
lim -= (MSize)gc_onestep(L); lim -= (MSize)gc_onestep(L);
if (g->gc.state == GCSpause) { if (g->gc.state == GCSpause) {
lua_assert(g->gc.total >= g->gc.estimate);
g->gc.threshold = (g->gc.estimate/100) * g->gc.pause; g->gc.threshold = (g->gc.estimate/100) * g->gc.pause;
g->vmstate = ostate; g->vmstate = ostate;
return 1; /* Finished a GC cycle. */ return 1; /* Finished a GC cycle. */