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

Add configuration option controlling DSS support #2476

Merged
merged 1 commit into from Aug 3, 2023

Conversation

Svetlitski
Copy link
Contributor

In many environments, the fallback sbrk(2) allocation path is never used even if the system supports the syscall; if you're at the point where mmap(2) is failing, sbrk(2) is unlikely to succeed. Without changing the default, I've added the ability to disable the usage of DSS altogether, so that you do not need to pay for the additional code size and handful of extra runtime branches in such environments.

In many environments, the fallback `sbrk(2)` allocation path is never
used even if the system supports the syscall; if you're at the point
where `mmap(2)` is failing, `sbrk(2)` is unlikely to succeed. Without
changing the default, I've added the ability to disable the usage of DSS
altogether, so that you do not need to pay for the additional code size
and handful of extra runtime branches in such environments.
@interwq interwq merged commit ea5b7be into jemalloc:dev Aug 3, 2023
20 checks passed
@Svetlitski Svetlitski deleted the config-disable-dss branch August 3, 2023 21:03
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.

None yet

2 participants