mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Remove bogus assertion for GC estimate vs. threshold.
This commit is contained in:
parent
8c32b38ca3
commit
96cc99bd6a
@ -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. */
|
||||||
|
Loading…
Reference in New Issue
Block a user