about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2017-07-05 12:03:17 -0700
committerJosh Stone <jistone@redhat.com>2017-07-07 09:19:04 -0700
commitbe509b3387aebb453b09a4942cf902c7d05a0f1e (patch)
tree22312aa799c622b13bcec2c413f27a9d8b773ed2 /src/libsyntax/parse
parent703341051d857bba054f97c38f80d10aab44521c (diff)
downloadrust-be509b3387aebb453b09a4942cf902c7d05a0f1e.tar.gz
rust-be509b3387aebb453b09a4942cf902c7d05a0f1e.zip
Skip the main thread's manual stack guard on Linux
Linux doesn't allocate the whole stack right away, and the kernel has
its own stack-guard mechanism to fault when growing too close to an
existing mapping.  If we map our own guard, then the kernel starts
enforcing a rather large gap above that, rendering much of the possible
stack space useless.

Instead, we'll just note where we expect rlimit to start faulting, so
our handler can report "stack overflow", and trust that the kernel's own
stack guard will work.

Fixes #43052.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions