Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start: make stack size strategy configurable #17830

Closed
wants to merge 5 commits into from
Closed

start: make stack size strategy configurable #17830

wants to merge 5 commits into from

Conversation

Aransentin
Copy link
Contributor

With this PR, one can specify what Linux stack-resizing behaviour by setting the appropriate option in std_options. There are three possibilities:

  • none, which relies on the default Linux stack size of 8 MiB.
  • program_header, which will look through the ELF headers set the stack size using setrlimit. This is the current and default behaviour.
  • fixed, which sets the value to a configurable fixed size, compile-time asserted to be divisible by the page size as the syscall wants.

If you don't set any of these values the default of program_header is chosen, which is the current behaviour, so this PR should have no effect on existing code.

@andrewrk
Copy link
Member

Closing abandoned pull request (CI checks failing, no activity in 30 days).

Sign up for free to 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