* [Buildroot] [PATCH] lua: add a uptstream patch
@ 2015-01-10 8:30 Francois Perrad
2015-01-10 10:42 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Francois Perrad @ 2015-01-10 8:30 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
package/lua/5.2.3/0012-fix-ephemeron-table.patch | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 package/lua/5.2.3/0012-fix-ephemeron-table.patch
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 0000000..f231016
--- /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 */
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] lua: add a uptstream patch
2015-01-10 8:30 [Buildroot] [PATCH] lua: add a uptstream patch Francois Perrad
@ 2015-01-10 10:42 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-01-10 10:42 UTC (permalink / raw)
To: buildroot
Dear Francois Perrad,
On Sat, 10 Jan 2015 09:30:53 +0100, Francois Perrad wrote:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
> package/lua/5.2.3/0012-fix-ephemeron-table.patch | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> create mode 100644 package/lua/5.2.3/0012-fix-ephemeron-table.patch
Thanks, applied after fixing the commit title.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-10 10:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-10 8:30 [Buildroot] [PATCH] lua: add a uptstream patch Francois Perrad
2015-01-10 10:42 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.