Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "vm->destroy is not at kernel level ..."
[simgrid.git] / src / msg / msg_vm.cpp
index 15f68ac..3d9c4da 100644 (file)
@@ -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());