diff options
author | Mike Pall <mike> | 2013-10-14 19:31:24 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013-10-14 19:31:24 +0200 |
commit | 5d25645a210f32dddecde9c50afb14f9ee63e180 (patch) | |
tree | b6cf446eb9c58f6d4e5ed0064c11d83cb2348b01 /src/lj_tab.h | |
parent | 3cdeb54a24047d1402a0c2d795888c0791f9157d (diff) | |
download | luajit2-5d25645a210f32dddecde9c50afb14f9ee63e180.tar.gz |
FFI: Rehash finalizer table after GC cycle, if needed.
Diffstat (limited to 'src/lj_tab.h')
-rw-r--r-- | src/lj_tab.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lj_tab.h b/src/lj_tab.h index 2787caa0..98ded17e 100644 --- a/src/lj_tab.h +++ b/src/lj_tab.h @@ -39,6 +39,9 @@ LJ_FUNC GCtab * LJ_FASTCALL lj_tab_new1(lua_State *L, uint32_t ahsize); #endif LJ_FUNCA GCtab * LJ_FASTCALL lj_tab_dup(lua_State *L, const GCtab *kt); LJ_FUNC void LJ_FASTCALL lj_tab_free(global_State *g, GCtab *t); +#if LJ_HASFFI +LJ_FUNC void lj_tab_rehash(lua_State *L, GCtab *t); +#endif LJ_FUNCA void lj_tab_reasize(lua_State *L, GCtab *t, uint32_t nasize); /* Caveat: all getters except lj_tab_get() can return NULL! */ |