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
Revert "vm->destroy is not at kernel level ..."
[simgrid.git]
/
src
/
msg
/
msg_vm.cpp
diff --git
a/src/msg/msg_vm.cpp
b/src/msg/msg_vm.cpp
index
15f68ac
..
3d9c4da
100644
(file)
--- a/
src/msg/msg_vm.cpp
+++ b/
src/msg/msg_vm.cpp
@@
-180,7
+180,7
@@
void MSG_vm_destroy(msg_vm_t vm)
MSG_vm_shutdown(vm);
/* Then, destroy the VM object */
-
vm->destroy(
);
+
simgrid::simix::kernelImmediate([vm]() { vm->destroy(); }
);
if (TRACE_msg_vm_is_enabled()) {
container_t container = simgrid::instr::Container::byName(vm->getName());