[Tarantool-patches] [PATCH luajit v3 5/5] luajit: change order of modules
Mikhail Shishatskiy
m.shishatskiy at tarantool.org
Fri Aug 20 10:05:46 MSK 2021
Since commit [1] luajit module <memprof/process.lua> depends on
<memprof/humanize.lua>, so we need to change order of these modules
in <src/lua/init.c> to avoid unprotected API calls.
[1]: https://github.com/tarantool/luajit/commit/90fe59d286cddcc4b76c7123a68776fe53d9e47e
Follows up tarantool/tarantool#5814
---
Issue: https://github.com/tarantool/tarantool/issues/5814
Luajit branch: https://github.com/tarantool/luajit/tree/shishqa/gh-5814-group-allocations-on-trace-by-trace-number
tarantool branch: https://github.com/tarantool/tarantool/tree/shishqa/gh-5814-group-allocations-on-trace-by-trace-number
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 f9738025d..8ac2f3592 100644
--- a/src/lua/init.c
+++ b/src/lua/init.c
@@ -127,8 +127,8 @@ extern char strict_lua[],
bufread_lua[],
symtab_lua[],
parse_lua[],
- process_lua[],
humanize_lua[],
+ process_lua[],
memprof_lua[]
;
@@ -181,8 +181,8 @@ static const char *lua_modules[] = {
"utils.bufread", bufread_lua,
"utils.symtab", symtab_lua,
"memprof.parse", parse_lua,
- "memprof.process", process_lua,
"memprof.humanize", humanize_lua,
+ "memprof.process", process_lua,
"memprof", memprof_lua,
NULL
};
--
2.32.0
More information about the Tarantool-patches
mailing list