Skip to content

Commit

Permalink
openbsd: adjust page guard address
Browse files Browse the repository at this point in the history
some commits in OpenBSD base have corrected a problem of stack position.
Now, we can adjust more accurately the page guard in rust.
  • Loading branch information
semarie committed Feb 28, 2015
1 parent 8a69110 commit 28362d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/thread.rs
Expand Up @@ -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
Expand Down

0 comments on commit 28362d5

Please sign in to comment.