-
Notifications
You must be signed in to change notification settings - Fork 920
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
mimalloc: assertion failed in mi_segment_span_free_coalesce #691
Comments
Thanks Sam! I studied it and the assertion is indeed too strict (so no bug). It is because for v2.0.9 I made huge segments behave more regularly and no longer as abandoned "orphans" such that heap walking works correctly now for huge segments/blocks. To still release memory early for huge block frees we now decommit them directly on free but the block and segment itself is reclaimed later on like regular segments -- this lead to the now failing assertion but it is actually correct behavior now. |
This should be fixed in the latest releases. There has been some code reshuffling recently -- I hope that does not cause too much trouble for your integration. If so, let me know and I can perhaps help further! :-) |
I'm using mimalloc v2.0.9. I'm getting an assertion error when I do the following:
The text was updated successfully, but these errors were encountered: