aboutsummaryrefslogtreecommitdiff
path: root/ltests.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 /ltests.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 'ltests.h')
-rw-r--r--ltests.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/ltests.h b/ltests.h
index e9219e29..f8c4466f 100644
--- a/ltests.h
+++ b/ltests.h
@@ -23,11 +23,6 @@
23#define LUAI_ASSERT 23#define LUAI_ASSERT
24 24
25 25
26
27/* compiled with -O0, Lua uses a lot of C stack space... */
28#undef LUAI_MAXCSTACK
29#define LUAI_MAXCSTACK 400
30
31/* to avoid warnings, and to make sure value is really unused */ 26/* to avoid warnings, and to make sure value is really unused */
32#define UNUSED(x) (x=0, (void)(x)) 27#define UNUSED(x) (x=0, (void)(x))
33 28