A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Cleanup heap switching code
[simgrid.git]
/
src
/
mc
/
mc_client_api.c
diff --git
a/src/mc/mc_client_api.c
b/src/mc/mc_client_api.c
index
9c7b2e7
..
fad7c0f
100644
(file)
--- a/
src/mc/mc_client_api.c
+++ b/
src/mc/mc_client_api.c
@@
-68,9
+68,7
@@
void MC_ignore(void* addr, size_t size)
}
// TODO, remove this once the migration has been completed
}
// TODO, remove this once the migration has been completed
- int raw_mem_set = (mmalloc_get_current_heap() == mc_heap);
- MC_SET_MC_HEAP;
+ xbt_mheap_t heap = mmalloc_set_current_heap(mc_heap);
MC_process_ignore_memory(&mc_model_checker->process, addr, size);
MC_process_ignore_memory(&mc_model_checker->process, addr, size);
- if (!raw_mem_set)
- MC_SET_STD_HEAP;
+ mmalloc_set_current_heap(heap);
}
}