diff options
Diffstat (limited to 'src/lj_gc.h')
-rw-r--r-- | src/lj_gc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_gc.h b/src/lj_gc.h index 7279b93c..3d213eb3 100644 --- a/src/lj_gc.h +++ b/src/lj_gc.h | |||
@@ -69,6 +69,8 @@ LJ_FUNC void lj_gc_barriertrace(global_State *g, void *T); | |||
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | /* Barrier for stores to table objects. TValue and GCobj variant. */ | 71 | /* Barrier for stores to table objects. TValue and GCobj variant. */ |
72 | #define lj_gc_anybarriert(L, t) \ | ||
73 | { if (isblack(obj2gco(t))) lj_gc_barrierback(G(L), (t)); } | ||
72 | #define lj_gc_barriert(L, t, tv) \ | 74 | #define lj_gc_barriert(L, t, tv) \ |
73 | { if (tviswhite(tv) && isblack(obj2gco(t))) \ | 75 | { if (tviswhite(tv) && isblack(obj2gco(t))) \ |
74 | lj_gc_barrierback(G(L), (t)); } | 76 | lj_gc_barrierback(G(L), (t)); } |