summaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-09-11 14:24:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-09-11 14:24:14 -0300
commitb114c7d4871051cbdd7af185a61f35fe4028da79 (patch)
tree6ee42a4b6a4af27789329c8a65c75bba508e8258 /lgc.c
parent9cbf17b0f1bb4001b237c4027b271f0db9bde62c (diff)
downloadlua-github-b114c7d4871051cbdd7af185a61f35fe4028da79.tar.gz
Added "cost" for the use of C stack by a coroutine invocation.
Resuming a coroutine uses more C stack than other operations (such as function calls or recursive syntax). So, to avoid stack overflow in recursive coroutine invocations, either LUAI_MAXCCALLS must be too small or a coroutine invocation must "pay" a higher price. New constant LUAL_COROCSTK ("COROutine C STaK") defines how much is this price.
Diffstat (limited to 'lgc.c')
0 files changed, 0 insertions, 0 deletions