Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mm] Allow to disable the mm based `malloc` at runtime
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 9 Dec 2014 11:17:18 +0000 (12:17 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 9 Dec 2014 11:17:18 +0000 (12:17 +0100)
commit3b0750b6ed8bc6fef03b3cd4a46b0ccf33e4f4b5
treeeb803ab56b09bda96a61a5cab59f57678ca1d5db
parent05a1ec8eec2449bd4d992977c3b4038430c9fe6d
[mm] Allow to disable the mm based `malloc` at runtime

The goal is to enable the mm based `malloc` only when needed and fall
back to the (more efficient) builtin/next implementation when it is
not needed:

  * run instrospection-less jobs without it;

  * whene the MC and the application are in different processes, the
    MC will be able to run with the standard `malloc` and the
    application will use mm.

As malloc is needed very early in the application initialisation, an
environment variable is used to change the behaviour.
src/mc/mc_checkpoint.c
src/mc/mc_memory.c
src/xbt/mmalloc/mm_legacy.c
src/xbt/mmalloc/mm_module.c