You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When dynamically loading on Mac, the loader seems to free a pointer to us that was not allocated by us (presumably it was allocated by malloc before our symbols were loaded). As I see it, we have two options:
Figure out how to load on Mac so that this doesn't happen
Figure out how to detect whether a pointer is ours; if it isn't, just leak it (or maybe free it to libc free?)
@davidtgoldblatt Have you folks run into this problem with jemalloc?
The text was updated successfully, but these errors were encountered:
My memory is that this is fundamental on OS X; there will be a mixture of pointers allocated by your malloc and the libc malloc no matter what, so that if you want to replace libc malloc you need to be able to handle this issue. I'm less confident about that one though.
When dynamically loading on Mac, the loader seems to free a pointer to us that was not allocated by us (presumably it was allocated by
malloc
before our symbols were loaded). As I see it, we have two options:@davidtgoldblatt Have you folks run into this problem with jemalloc?
The text was updated successfully, but these errors were encountered: