purpleprotocol / mimalloc_rust

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

Remove `may_use_unaligned_api` #100

Closed nathaniel-daniel closed 10 months ago

nathaniel-daniel commented 10 months ago

Fixes #87 Fixes #96

I was able to replicate and fix the test case from https://github.com/purpleprotocol/mimalloc_rust/issues/87#issuecomment-1690419508. However, I wasn't able to replicate the problem from https://github.com/purpleprotocol/mimalloc_rust/issues/96#issue-1778121788, as I don't know the exact versions of the dependencies used. The issue seems related though (secure mode, misaligned allocations) and the alternative crate seems to just use mi_aligned_alloc for everything as well.