Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Temporary patch to handle host failure exception during live migration of VM (a clean...
[simgrid.git] / src / bindings / java / jmsg_vm.c
index e508db1..e4561f9 100644 (file)
@@ -125,7 +125,11 @@ JNIEXPORT void JNICALL
 Java_org_simgrid_msg_VM_internalmig(JNIEnv *env, jobject jvm, jobject jhost) {
   msg_vm_t vm = jvm_get_native(env,jvm);
   msg_host_t host = jhost_get_native(env, jhost);
+  TRY{
   MSG_vm_migrate(vm,host);
+  } CATCH_ANONYMOUS{
+      jxbt_throw_jni(env, "Host failure");
+  } 
 }
 
 JNIEXPORT void JNICALL