diff options
| author | Francois Perrad <fperrad@gmail.com> | 2015-01-10 09:30:53 +0100 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-01-10 11:39:53 +0100 |
| commit | 6aa156fa1f532a0079670667c0946e7c9008692f (patch) | |
| tree | d77abaa757b8e46c9f1236258e4320768b46f8ec /package/lua | |
| parent | 0dbc17abcb5c254d60a8d59e1ae0d715c2db4324 (diff) | |
| download | buildroot-6aa156fa1f532a0079670667c0946e7c9008692f.tar.gz buildroot-6aa156fa1f532a0079670667c0946e7c9008692f.zip | |
lua: add a upstream patch
[Thomas: fix minor typo in commit title.]
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lua')
| -rw-r--r-- | package/lua/5.2.3/0012-fix-ephemeron-table.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/lua/5.2.3/0012-fix-ephemeron-table.patch b/package/lua/5.2.3/0012-fix-ephemeron-table.patch new file mode 100644 index 0000000000..f231016922 --- /dev/null +++ b/package/lua/5.2.3/0012-fix-ephemeron-table.patch @@ -0,0 +1,19 @@ +Ephemeron table can wrongly collect entry with strong key. + +Fetch from: http://www.lua.org/bugs.html#5.2.3-2 + +Signed-off-by: Francois Perrad <francois.perrad@gadz.org> + +Index: b/src/lgc.c +=================================================================== +--- a/src/lgc.c ++++ b/src/lgc.c +@@ -403,7 +403,7 @@ + reallymarkobject(g, gcvalue(gval(n))); /* mark it now */ + } + } +- if (prop) ++ if (g->gcstate != GCSatomic || prop) + linktable(h, &g->ephemeron); /* have to propagate again */ + else if (hasclears) /* does table have white keys? */ + linktable(h, &g->allweak); /* may have to clean white keys */ |

