I am trying to dlopen
memory allocators at runtime.
I have no problem with libc
, tcmalloc
and tbbmalloc
. But trying to dlopen
jemalloc
results in the following error (caught via dlerror
) :
/path/to/lib/libjemalloc.so: cannot allocate memory in static TLS block
Do you have any idea of the reason for this error and hence how I could tackle this ?