diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-07-04 11:02:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-07-04 11:02:06 -0700 |
commit | ebca89d000e512851b4f06e5f478635ee70b3f19 (patch) | |
tree | 1358002795eb073be5a5493d2ee5200a6dbfa590 /parser.c | |
parent | 9d8a89af69dfa46c7b74c2ffe049a5deddd67274 (diff) | |
download | txr-ebca89d000e512851b4f06e5f478635ee70b3f19.tar.gz txr-ebca89d000e512851b4f06e5f478635ee70b3f19.tar.bz2 txr-ebca89d000e512851b4f06e5f478635ee70b3f19.zip |
stack-limit: always set a stack limit.
Even if built without getrlimit, and even if getrlimit
reports an unlimited stack size, set up a default limit.
* gc.c (DFL_STACK_LIMIT): New preprocessor symbol, defined as
128 kilbytes for a small memory configuration, otherwise
16 megabytes.
(gc_init): Set up a default stack limit unconditionally
based on DFL_STACK_LIMIT before probing getrlimit.
Diffstat (limited to 'parser.c')
0 files changed, 0 insertions, 0 deletions