mimalloc icon indicating copy to clipboard operation
mimalloc copied to clipboard

First class heap allocations from different threads

Open robertblaketaylor opened this issue 1 year ago • 3 comments

I was interested in using the direct heap functions for tracking heaps directly in our codebase, but see the caveat that:

but can only allocate from the same thread that created it.

Do you have any plans on removing this restriction?

robertblaketaylor avatar Aug 16 '24 16:08 robertblaketaylor

Yes, I am planning to add this but it is not entirely trivial to do in a performant way. Currently working on improving behavior with many threads being created/terminated and blocked threads but I hopefully get to fc heaps after that.

daanx avatar Aug 22 '24 00:08 daanx

https://github.com/microsoft/mimalloc/issues/720

1027663760 avatar Jan 06 '25 02:01 1027663760

Any updates on this?

robertblaketaylor avatar Feb 03 '25 20:02 robertblaketaylor