Skip to content

teach rustc to replace the system allocator with jemalloc in executables #18896

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

Closed
thestinger opened this issue Nov 12, 2014 · 1 comment
Closed
Labels
A-allocators Area: Custom and system allocators A-frontend Area: Compiler frontend (errors, parsing and HIR) I-slow Issue: Problems and improvements with respect to performance of generated code.

Comments

@thestinger
Copy link
Contributor

The compiler can expose the ability to replace the system allocator in executables. On platforms where this is done via weak symbols, it can likely just inject strong aliases. If the allocator is not being replaced, then it should really be setting dss:disabled via the magic global jemalloc uses to set options.

@thestinger thestinger added I-slow Issue: Problems and improvements with respect to performance of generated code. A-allocators Area: Custom and system allocators A-frontend Area: Compiler frontend (errors, parsing and HIR) I-wrong I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. and removed I-wrong I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. labels Nov 12, 2014
@thestinger
Copy link
Contributor Author

This was rejected in any sensible form, so it really doesn't make sense to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-allocators Area: Custom and system allocators A-frontend Area: Compiler frontend (errors, parsing and HIR) I-slow Issue: Problems and improvements with respect to performance of generated code.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant