** performs a basic GC step if collector is running */
| 1676 | ** performs a basic GC step if collector is running |
| 1677 | */ |
| 1678 | void luaC_step (lua_State *L) { |
| 1679 | global_State *g = G(L); |
| 1680 | lua_assert(!g->gcemergency); |
| 1681 | if (g->gcrunning) { /* running? */ |
| 1682 | if(isdecGCmodegen(g)) |
| 1683 | genstep(L, g); |
| 1684 | else |
| 1685 | incstep(L, g); |
| 1686 | } |
| 1687 | } |
| 1688 | |
| 1689 | |
| 1690 | /* |