** performs a basic GC step if collector is running */
| 1564 | ** performs a basic GC step if collector is running |
| 1565 | */ |
| 1566 | void luaC_step (lua_State *L) { |
| 1567 | global_State *g = G(L); |
| 1568 | lua_assert(!g->gcemergency); |
| 1569 | if (g->gcrunning) { /* running? */ |
| 1570 | if(isdecGCmodegen(g)) |
| 1571 | genstep(L, g); |
| 1572 | else |
| 1573 | incstep(L, g); |
| 1574 | } |
| 1575 | } |
| 1576 | |
| 1577 | |
| 1578 | /* |