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

conditionally disable mimalloc override/hook #1024

Open
Kamayuq opened this issue Feb 25, 2025 · 1 comment
Open

conditionally disable mimalloc override/hook #1024

Kamayuq opened this issue Feb 25, 2025 · 1 comment

Comments

@Kamayuq
Copy link

Kamayuq commented Feb 25, 2025

I have not found any but is there an option to conditionally disable mimalloc on startup and forward all calls to the system allocator instead? This is mainly for using it together with ASan or whendoing A/B performance testing.

If it's not available already a possible option to trigger this would be the use of an environment variable before startup.

@daanx
Copy link
Collaborator

daanx commented Feb 25, 2025

On Windows with dynamic override (using mimalloc-redirect.dll), you can set the environment variable MIMALLOC_DISABLE_REDIRECT=1 to disable dynamic redirection. (see the bin/readme.md for this)
Hope this helps!

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

No branches or pull requests

2 participants