Skip to contentSkip to conversation

lua: add a uptstream patch

PATCH New Francois Perrad 2 participants 2 messages Jan 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lua: add a uptstream patch

---
 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
package/lua/5.2.3/0012-fix-ephemeron-table.patch new file +19 -0
new file mode 100644
index 0000000..f231016
@@ -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 <[email protected]>
+
+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 */
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 lua: add a uptstream patch

Dear Francois Perrad,

Quoted 5 lines · Francois Perrad
---
 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

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com