sholsapp / gallocy

A distributed shared memory infrastructure.
27 stars 9 forks source link

OSX support #1

Closed sholsapp closed 10 years ago

sholsapp commented 10 years ago

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.

sholsapp commented 10 years ago

Found http://google-perftools.googlecode.com/svn/tags/google-perftools-1.8/src/libc_override_osx.h which provides a much lighter weight solution. Not as much magic going on there.

sholsapp commented 10 years ago

This is fixed.