… | |
… | |
142 | |
142 | |
143 | A setting of 16384 (the default) therefore corresponds to a 64k..128k |
143 | A setting of 16384 (the default) therefore corresponds to a 64k..128k |
144 | stack, which usually is ample enough space (you might want to try 8192 or |
144 | stack, which usually is ample enough space (you might want to try 8192 or |
145 | lower if your program creates many coroutines). |
145 | lower if your program creates many coroutines). |
146 | |
146 | |
147 | Some perls (mostly threaded ones) may need much, much more: If Coro |
147 | Some perls (mostly threaded ones) and some programs (inefficient regexes |
|
|
148 | can use a lot of stack space) may need much, much more: If Coro segfaults |
148 | segfaults with weird backtraces (e.g. in a function prologue) or in |
149 | with weird backtraces (e.g. in a function prologue) or in t/10_bugs.t, you |
149 | t/10_bugs.t, you might want to increase this to 65536 or more (debian |
150 | might want to increase this to 65536 or more (debian perls might require |
150 | perls might require this). |
151 | this). |
151 | |
152 | |
152 | EOF |
153 | EOF |
153 | |
154 | |
154 | my $stacksize = prompt ("C stack size factor", "16384"); |
155 | my $stacksize = prompt ("C stack size factor", "16384"); |
155 | $DEFINE .= " -DSTACKSIZE=$stacksize"; |
156 | $DEFINE .= " -DSTACKSIZE=$stacksize"; |