]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #83771 - asomers:stack_overflow_freebsd, r=dtolnay
authorDylan DPC <dylan.dpc@gmail.com>
Fri, 2 Apr 2021 17:57:35 +0000 (19:57 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Apr 2021 17:57:35 +0000 (19:57 +0200)
commitcb7133f6934843408b36ce163cf1c3f3596fac68
tree081a410167ea3b52f6e2562e20e161691b9993f5
parenteed73c6e4d21e25cd553fe06a24e5200714bc0ab
parentca14abbab1821d20d4d326af2acec916ccc0806e
Rollup merge of #83771 - asomers:stack_overflow_freebsd, r=dtolnay

Fix stack overflow detection on FreeBSD 11.1+

Beginning with FreeBSD 10.4 and 11.1, there is one guard page by
default.  And the stack autoresizes, so if Rust allocates its own guard
page, then FreeBSD's will simply move up one page.  The best solution is
to just use the OS's guard page.