// disk_path = (*env)->GetStringUTFChars(env, jdiskpath, 0);
// disk_path = xbt_strdup(disk_path);
- msg_vm_t vm = MSG_vm_create(host, name, (int) jncore, (int) jramsize, (int) jnetcap, NULL, (int) jdisksize,
+ msg_vm_t vm = MSG_vm_create(host, name, (int) jncore, (int) jramsize, (int) jnetcap, nullptr, (int) jdisksize,
(int) jmig_netspeed, (int) jdp_intensity);
jvm_bind(env,jvm,vm);
{
msg_vm_t vm = jvm_get_native(env,jvm);
msg_host_t host = jhost_get_native(env, jhost);
- xbt_ex_t e;
- TRY{
+ try {
MSG_vm_migrate(vm,host);
- } CATCH(e){
- XBT_VERB("CATCH EXCEPTION MIGRATION %s",e.msg);
- xbt_ex_free(e);
+ }
+ catch(xbt_ex& e){
+ XBT_VERB("CATCH EXCEPTION MIGRATION %s",e.what());
jxbt_throw_host_failure(env, (char*)"during migration");
}
}