mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
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>
This commit is contained in:
parent
0dbc17abcb
commit
6aa156fa1f
19
package/lua/5.2.3/0012-fix-ephemeron-table.patch
Normal file
19
package/lua/5.2.3/0012-fix-ephemeron-table.patch
Normal file
@ -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 */
|
Loading…
x
Reference in New Issue
Block a user