Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Do not call malloc_no_memset in mc_snapshot
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 6 Feb 2015 11:08:12 +0000 (12:08 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 6 Feb 2015 12:15:24 +0000 (13:15 +0100)
commit6a1a64f72c3f699c137b1352b0a93f4b5a1c8fd6
tree93b9e505c8cbc608945f0b45ec46fa088497dce2
parent02f267e2895f3985fe73344a8b96ac05363b8b62
[mc] Do not call malloc_no_memset in mc_snapshot

The main code should not called mmalloc/mmfree/mmrealloc directly
because it will fail in client/server mode: the server does not have
separate heap and will choke on this.

Replace mmalloc_no_memset with malloc_no_memset which does the right
thing:

  * either call mmalloc_no_memset;

  * or call malloc.
include/xbt/mmalloc.h
src/include/mc/mc.h
src/mc/mc_memory.c
src/mc/mc_page_snapshot.cpp
src/mc/mc_process.c
src/surf/surf_interface.cpp
src/xbt/mmalloc/mm_legacy.c