Explorar el Código

Remove bogus assertion for GC estimate vs. threshold.

Mike Pall hace 14 años
padre
commit
96cc99bd6a
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      src/lj_gc.c

+ 0 - 1
src/lj_gc.c

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