daanx / mimalloc-bench

Suite for benchmarking malloc implementations.
MIT License
357 stars 53 forks source link

Prevent malloc and free being inlined. #175

Closed mjp41 closed 1 year ago

mjp41 commented 1 year ago

I found that the compiler was applying knowledge of malloc and free, and optimising many of the security programs that are inherently UB into something else. By preventing the inlining these optimisations no longer occur.