Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill useless complexity in mmalloc: one of the dlsym
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 28 Jul 2022 08:37:30 +0000 (10:37 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 28 Jul 2022 08:38:22 +0000 (10:38 +0200)
commit95549e8efbf9c27d351663a214006fd1b336c3f4
treeb21207be6eff7295605d33bcdd5320f621a9f88d
parent9b147d0f784ad1cec2e7de242cfa16cb7c023466
Kill useless complexity in mmalloc: one of the dlsym

dlsym is not necessary to retrieve the LD_PRELOAD-injected symbol.

The killed code was intended to be used in libsimgrid, trying to
detect when libsgmalloc was already in memory to use that copy
instead. But that's useless: LD_PRELOAD ensures that the copy of the
injected version is the only existing one in the process.

In addition, that may resolve stability issues that my previous commit
didn't solve as nicely on the build daemons than on my laptop with gcc.
src/xbt/mmalloc/mm_module.c