diff options
| author | Sébastien Marie <semarie@users.noreply.github.com> | 2015-02-23 19:58:48 +0100 |
|---|---|---|
| committer | Sébastien Marie <semarie@users.noreply.github.com> | 2015-02-28 17:26:42 +0100 |
| commit | 28362d542d2561c4cc16cb3229ce3fed7317dbd6 (patch) | |
| tree | 26f08af6ee01ae0f69a5d1ae1c8f09876b887540 /src | |
| parent | 8a69110c3b1122596ddc8999bb2403a5777bb8ed (diff) | |
| download | rust-28362d542d2561c4cc16cb3229ce3fed7317dbd6.tar.gz rust-28362d542d2561c4cc16cb3229ce3fed7317dbd6.zip | |
openbsd: adjust page guard address
some commits in OpenBSD base have corrected a problem of stack position. Now, we can adjust more accurately the page guard in rust.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/sys/unix/thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs index f4791d39da1..827e2afdca8 100644 --- a/src/libstd/sys/unix/thread.rs +++ b/src/libstd/sys/unix/thread.rs @@ -164,7 +164,7 @@ pub mod guard { if pthread_main_np() == 1 { // main thread - current_stack.ss_sp as uint - current_stack.ss_size as uint + 3 * PAGE_SIZE as uint + current_stack.ss_sp as uint - current_stack.ss_size as uint + PAGE_SIZE as uint } else { // new thread |
