texlive[49026] Build/source/texk/web2c/mfluadir: turn off jit by

commits+lscarso at tug.org commits+lscarso at tug.org
Tue Oct 30 09:48:55 CET 2018


Revision: 49026
          http://tug.org/svn/texlive?view=revision&revision=49026
Author:   lscarso
Date:     2018-10-30 09:48:55 +0100 (Tue, 30 Oct 2018)
Log Message:
-----------
turn off jit by default in mfluajit

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/mfluadir/ChangeLog
    trunk/Build/source/texk/web2c/mfluadir/mfluac.c

Modified: trunk/Build/source/texk/web2c/mfluadir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/mfluadir/ChangeLog	2018-10-30 01:23:11 UTC (rev 49025)
+++ trunk/Build/source/texk/web2c/mfluadir/ChangeLog	2018-10-30 08:48:55 UTC (rev 49026)
@@ -1,3 +1,10 @@
+2018-30-10 Luigi Scarso <luigi.scarso at gmail.com>
+
+	* jit default off in mfluajit: in some platforms (e.g NetBSD8)
+	  executing code from memory is forbidden by default.
+	  In case, a user can enable jit at runtime.
+
+
 2018-02-08 Luigi Scarso <luigi.scarso at gmail.com>
 
 	* MFLua 0.9.

Modified: trunk/Build/source/texk/web2c/mfluadir/mfluac.c
===================================================================
--- trunk/Build/source/texk/web2c/mfluadir/mfluac.c	2018-10-30 01:23:11 UTC (rev 49025)
+++ trunk/Build/source/texk/web2c/mfluadir/mfluac.c	2018-10-30 08:48:55 UTC (rev 49026)
@@ -10,6 +10,9 @@
 #include <lualib.h>
 #include <lauxlib.h>
 #include <kpathsea/kpathsea.h>
+#if defined(JIT)
+#include <luajit.h>
+#endif
 /**************************************************************/
 /*                                                            */
 /* private functions                                          */
@@ -537,6 +540,7 @@
       lua_pushstring(L,"MFbuiltin");
 #ifdef MFLuaJIT
       /* 5.1 */ 
+      luaJIT_setmode(L, 0, LUAJIT_MODE_ENGINE|LUAJIT_MODE_OFF);
       lua_newtable(L);
       luaL_register (L,NULL,MFbuiltin_l);
 #else



More information about the tex-live-commits mailing list