diff options
author | Mike Pall <mike> | 2010-04-21 01:45:58 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2010-04-21 01:45:58 +0200 |
commit | ab45481199e9c9dd3efec922647bcec122504bcb (patch) | |
tree | 0484341edff50a0afe98133ad66fb6a59915996a /src/lib_base.c | |
parent | d8cb69ed076c3444258f63314662451c9d117cae (diff) | |
download | luajit2-ab45481199e9c9dd3efec922647bcec122504bcb.tar.gz |
No longer let the GC replace dead keys with the LJ_TDEADKEY tag.
Important: this changes the semantics of the write barrier!
Carefully read the big comment block in lj_obj.h
This helps HREFK key slot specialization and allows safely hoisting
HREF/HREFK across GC steps, too (fix for a barely reproducible bug).
Dead keys are only removed during a table resize (as before).
Diffstat (limited to 'src/lib_base.c')
-rw-r--r-- | src/lib_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_base.c b/src/lib_base.c index e85b7264..cbfd818a 100644 --- a/src/lib_base.c +++ b/src/lib_base.c @@ -54,7 +54,7 @@ LJLIB_PUSH("upval") LJLIB_PUSH("thread") LJLIB_PUSH("proto") LJLIB_PUSH("function") -LJLIB_PUSH("deadkey") +LJLIB_PUSH("") /* Unused. */ LJLIB_PUSH("table") LJLIB_PUSH(top-8) /* userdata */ LJLIB_PUSH("number") |