purpleprotocol / mimalloc_rust

A Rust wrapper over Microsoft's MiMalloc memory allocator
MIT License
486 stars 42 forks source link

Expose mimalloc's debug mode with a "debug" cargo feature #72

Closed hrydgard closed 2 years ago

hrydgard commented 2 years ago

Add a new cargo feature "debug" to enable a lot of debug checks within mimalloc.

Doesn't seem to fully function on Windows since the atexit handler never runs, for some reason. The handler does seem to run on other platforms so you get some extra debug output there.