fix committed stat
_mi_os_free reduces the stat by the full size without taking uncommitted sections into account. For this reason we have to add the uncommitted sections to the stat before calling it.
This should fix https://github.com/microsoft/mimalloc/issues/929
As an alternative fix we could call _mi_os_free_ex and decrease the stat here.
Ha, interesting -- looks like I decreased the commit while it should have been increased since _mi_os_free decreases by the full amount. Let me think a bit more on this but I think you are right.
Hello!
Is there a reason why this PR can't be merged? We also want to use mi_process_info, but the reported commit size is incorrect.
Ah, yes it is already in the latest dev/dev-slice but was added manually. I'll close this PR. There will be a fresh release v2.1.8 soon I hope.