From 5d8ce05b3f6fad79e37ed21c1076e47a322472c6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 21 Sep 2020 10:31:03 -0300 Subject: Back to a stackless implementation A "with stack" implementation gains too little in performance to be worth all the noise from C-stack overflows. This commit is almost a sketch, to test performance. There are several pending stuff: - review control of C-stack overflow and error messages; - what to do with setcstacklimit; - review comments; - review unroll of Lua calls. --- luaconf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index bdf927e7..229413d2 100644 --- a/luaconf.h +++ b/luaconf.h @@ -36,8 +36,8 @@ ** ===================================================================== */ -/* -@@ LUAI_MAXCSTACK defines the maximum depth for nested calls and +/* >>> move back to llimits.h +@@ LUAI_MAXCCALLS defines the maximum depth for nested calls and ** also limits the maximum depth of other recursive algorithms in ** the implementation, such as syntactic analysis. A value too ** large may allow the interpreter to crash (C-stack overflow). @@ -46,8 +46,8 @@ ** The test file 'cstack.lua' may help finding a good limit. ** (It will crash with a limit too high.) */ -#if !defined(LUAI_MAXCSTACK) -#define LUAI_MAXCSTACK 2000 +#if !defined(LUAI_MAXCCALLS) +#define LUAI_MAXCCALLS 200 #endif -- cgit v1.2.3-55-g6feb