Skip to content

allocate 2 pages more than requested for guard pages - #33

Merged
nagisa merged 1 commit into
rust-lang:masterfrom
semarie:guard_pages
May 9, 2020
Merged

allocate 2 pages more than requested for guard pages#33
nagisa merged 1 commit into
rust-lang:masterfrom
semarie:guard_pages

Conversation

@semarie

Copy link
Copy Markdown

as there is two guard pages used (one on top, and another on bottom), two additionnals guard pages needs to be allocated.

@semariesemarie changed the title allocate 2 pages more that requested for guard pagesallocate 2 pages more than requested for guard pagesMay 9, 2020
@semarie

Copy link
Copy Markdown
Author

it is important at least on OpenBSD as the kernel will prevent stack overflow by killing the process with uncatchable signal.

as there is two guard pages used (one on top, and another on bottom), two additionnals guard pages needs to be allocated.
@nagisa
nagisa merged commit 88f67c4 into rust-lang:masterMay 9, 2020
@semarie
semarie deleted the guard_pages branch May 9, 2020 12:50
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@semarie@nagisa