|
@@ -1164,7 +1164,7 @@ LUA_API int lua_gc(lua_State *L, int what, int data)
|
|
MSize a = (MSize)data << 10;
|
|
MSize a = (MSize)data << 10;
|
|
g->gc.threshold = (a <= g->gc.total) ? (g->gc.total - a) : 0;
|
|
g->gc.threshold = (a <= g->gc.total) ? (g->gc.total - a) : 0;
|
|
while (g->gc.total >= g->gc.threshold)
|
|
while (g->gc.total >= g->gc.threshold)
|
|
- if (lj_gc_step(L)) {
|
|
|
|
|
|
+ if (lj_gc_step(L) > 0) {
|
|
res = 1;
|
|
res = 1;
|
|
break;
|
|
break;
|
|
}
|
|
}
|