[Tarantool-patches] [PATCH luajit v1 4/4] luajit: change order of modules

Mikhail Shishatskiy m.shishatskiy at tarantool.org
Sat Aug 21 15:50:02 MSK 2021


Since commit [1], <memprof/parse.lua> module depends
on <memprof/humanize.lua> module, so we need to change
order of these modules in <src/lua/init.c> to avoid
unprotected API calls.

Follows up tarantool/tarantool#5815
---

Issue: https://github.com/tarantool/tarantool/issues/5815
Branch: https://github.com/tarantool/luajit/tree/shishqa/gh-5815-enrich-symtab-when-prototype-is-allocated
Tarantool branch: https://github.com/tarantool/tarantool/tree/shishqa/gh-5815-enrich-symtab-when-prototype-is-allocated

 src/lua/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lua/init.c b/src/lua/init.c
index 8ac2f3592..fcb1d2c90 100644
--- a/src/lua/init.c
+++ b/src/lua/init.c
@@ -126,8 +126,8 @@ extern char strict_lua[],
 	/* tools.* libraries. */
 	bufread_lua[],
 	symtab_lua[],
-	parse_lua[],
 	humanize_lua[],
+	parse_lua[],
 	process_lua[],
 	memprof_lua[]
 ;
@@ -180,8 +180,8 @@ static const char *lua_modules[] = {
 	/* tools.* libraries. Order is important. */
 	"utils.bufread", bufread_lua,
 	"utils.symtab", symtab_lua,
-	"memprof.parse", parse_lua,
 	"memprof.humanize", humanize_lua,
+	"memprof.parse", parse_lua,
 	"memprof.process", process_lua,
 	"memprof", memprof_lua,
 	NULL
-- 
2.32.0



More information about the Tarantool-patches mailing list