From baf5414b853524bb20df2b92e4b4e13bb1e425cd Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 21 Feb 2022 11:30:51 +0100 Subject: Make allocator threadsafe by default when running LuaJIT, because LuaJIT allocator is not --- src/macros_and_utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/macros_and_utils.h') diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h index dac89d1..e8e725b 100644 --- a/src/macros_and_utils.h +++ b/src/macros_and_utils.h @@ -109,4 +109,7 @@ extern char const* debugspew_indent; #define LUAJIT_FLAVOR 0 #endif // LUA_JITLIBNAME +// after all, it looks like we can use the state allocator for our own usage when running LuaJIT, as long as we mutex-protect it +#define USE_LUA_STATE_ALLOCATOR 1 // (LUAJIT_FLAVOR==0) + #endif // MACROS_AND_UTILS_H -- cgit v1.2.3-55-g6feb