Msg.info(" - End of Migration from host 1 to host 0 (duration:"+(endTime-startTime)+")");
Main.setEndOfTest();
- // no need to destroy the VMs: the garbage collector will get them all
+ Msg.info("Forcefully destroy VMs");
+ for (VM vm: vms)
+ vm.finalize();
+
}
}
return null;
}
@Override
- protected void finalize() {
+ public void finalize() {
try {
nativeFinalize();
} catch (Throwable e) {
e.printStackTrace();
}
}
+ private native void nativeFinalize();
/* JNI / Native code */
public native void restore();
- private native void nativeFinalize();
-
-
-
/**
* Class initializer, to initialize various JNI stuff
*/