-
Notifications
You must be signed in to change notification settings - Fork 804
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
C++ operator new
on Windows
#86
Comments
Thanks! Overriding the C++ operators is never necessary as they use malloc/free under the hood. Currently we only override them when compiling with a C++ compiler and only on macOS/Unix systems. The dynamic overriding on Windows is also still in flux so we disable it for now -- we might enable it again in the future for performance reasons. |
As discussed in #26, there is no such guarantee. Assuming Even where it does... why would I want the |
I agree Sean. I just pushed an update to the C++ overriding on Linux/BSD which is more complete and added the sized deletes on Windows. On windows there is still the |
While #85 makes this somewhat moot for me right now, it appears that overriding operator
new
in C++ on Windows is incomplete in mimalloc.There's an
#if 0
around the code inalloc-override-win.c
that appears to be necessary to patch the operators. It's not documented why that's there.Further, not all modern overloads of
new
are patched as of C++17. For example, there does not appear to be any patching for thestd::align_val_t
overloads, despite the mimalloc documentation.The text was updated successfully, but these errors were encountered: