The code responsible for substituting the system provided memory allocator -- wrapper.cpp -- doesn't work on OSX for pretty obvious reasons. The code needs to be adjusted to to support OSX and I think a good starting point is to read through and understand the work done by Emery Berger in https://github.com/emeryberger/Heap-Layers/blob/master/wrappers/macwrapper.cpp.
The code responsible for substituting the system provided memory allocator -- wrapper.cpp -- doesn't work on OSX for pretty obvious reasons. The code needs to be adjusted to to support OSX and I think a good starting point is to read through and understand the work done by Emery Berger in https://github.com/emeryberger/Heap-Layers/blob/master/wrappers/macwrapper.cpp.