aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-09-21 10:31:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-10-12 12:29:09 -0300
commit5d8ce05b3f6fad79e37ed21c1076e47a322472c6 (patch)
tree7629a59887da63d44267e872bc8e33be6db36582 /luaconf.h
parentf83de8e34e24e30acf277f60de62a33bd51d1ddd (diff)
downloadlua-5d8ce05b3f6fad79e37ed21c1076e47a322472c6.tar.gz
lua-5d8ce05b3f6fad79e37ed21c1076e47a322472c6.tar.bz2
lua-5d8ce05b3f6fad79e37ed21c1076e47a322472c6.zip
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.
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/luaconf.h b/luaconf.h
index bdf927e7..229413d2 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -36,8 +36,8 @@
36** ===================================================================== 36** =====================================================================
37*/ 37*/
38 38
39/* 39/* >>> move back to llimits.h
40@@ LUAI_MAXCSTACK defines the maximum depth for nested calls and 40@@ LUAI_MAXCCALLS defines the maximum depth for nested calls and
41** also limits the maximum depth of other recursive algorithms in 41** also limits the maximum depth of other recursive algorithms in
42** the implementation, such as syntactic analysis. A value too 42** the implementation, such as syntactic analysis. A value too
43** large may allow the interpreter to crash (C-stack overflow). 43** large may allow the interpreter to crash (C-stack overflow).
@@ -46,8 +46,8 @@
46** The test file 'cstack.lua' may help finding a good limit. 46** The test file 'cstack.lua' may help finding a good limit.
47** (It will crash with a limit too high.) 47** (It will crash with a limit too high.)
48*/ 48*/
49#if !defined(LUAI_MAXCSTACK) 49#if !defined(LUAI_MAXCCALLS)
50#define LUAI_MAXCSTACK 2000 50#define LUAI_MAXCCALLS 200
51#endif 51#endif
52 52
53 53