diff options
author | Björn Gustavsson <[email protected]> | 2010-04-14 08:00:29 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-04-14 08:12:02 +0200 |
commit | 1985e9d11c9cf409a935e648480bd275214adc3f (patch) | |
tree | fbe5422241790c10daa4fb11e1bb507cd5b3b0c2 /lib/compiler/test/pmod_SUITE_data/pmod_basic.erl | |
parent | dfc73e7475ba36998956da9b2f8ce58f8f2482d8 (diff) | |
download | otp-1985e9d11c9cf409a935e648480bd275214adc3f.tar.gz otp-1985e9d11c9cf409a935e648480bd275214adc3f.tar.bz2 otp-1985e9d11c9cf409a935e648480bd275214adc3f.zip |
MacOS X: Boost default stack size
The default stack size on MacOS X for the SMP emulator is too small
to support all uses of pcre. For example, the following expression
N = 819, re:compile([lists:duplicate(N, $(), lists:duplicate(N, $))]).
will cause a stack overflow. By bisection of different values
for the +sss option, I found that 166 is the smallest value that
avoids the crash. Round that up to 256 to give a nice, round power
of 2 and a resonable safety margin. Use that value as a default stack
size on MacOS X only.
Diffstat (limited to 'lib/compiler/test/pmod_SUITE_data/pmod_basic.erl')
0 files changed, 0 insertions, 0 deletions