I have many executables that are linked with tcmalloc (.a). I usually do it at the executable level, so that any shared library loaded by the executable benefits from tcmalloc.
However, I have a scenario where I need to provide a .so library to an user.
Is it ok to use tcmalloc in that shared library?
What happens if the user's executable itself is not linked with tcmalloc?
Thanks.