sholsapp / gallocy

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

Stop using the deprecated __malloc_hook function #9

Closed sholsapp closed 8 years ago

sholsapp commented 9 years ago

These functions have been deprecated in place of declaring the symbol directly (apparently malloc is defined as a weak symbol in glibc). Check out http://stackoverflow.com/questions/17803456/an-alternative-for-the-deprecated-malloc-hook-functionality-of-glibc for a good description of the problem and how to adjust code that is using __malloc_hook.

sholsapp commented 8 years ago

See https://sourceware.org/ml/libc-alpha/2011-07/msg00136.html email thread discussing why removing these hooks are considered harmful. I doubt these hooks are going anywhere, so we should just live with the error message.