diff options
author | Ryan Moeller <[email protected]> | 2020-09-22 19:03:11 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-22 16:03:11 -0700 |
commit | 5f8a9e6a028e9528567682cb0a92addb23032787 (patch) | |
tree | 3fd312c9b592c702c2e231b1618f96b6d2cc15e1 /include/sys/lua/luaconf.h | |
parent | 6bdb09510bd27038ee85c372035b27120a4f46c6 (diff) |
FreeBSD: Reduce stack usage of Lua
Use the same reduced buffer size for lauxlib that is used on Linux.
Fixes panic on HEAD in lua gsub test designed to exhaust stack space.
With this we can remove the special case to reserve more stack space
on FreeBSD.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Kyle Evans <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10959
Diffstat (limited to 'include/sys/lua/luaconf.h')
-rw-r--r-- | include/sys/lua/luaconf.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/sys/lua/luaconf.h b/include/sys/lua/luaconf.h index ce99f339f..83202d71c 100644 --- a/include/sys/lua/luaconf.h +++ b/include/sys/lua/luaconf.h @@ -368,11 +368,7 @@ extern int lcompat_hashnum(int64_t); @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. ** CHANGE it if it uses too much C-stack space. */ -#ifdef __linux__ #define LUAL_BUFFERSIZE 512 -#else -#define LUAL_BUFFERSIZE 1024 -#endif /* |