JNIEnv *env = get_current_thread_env();
XBT_DEBUG("Gonnal launch Killed Error");
jxbt_throw_by_name(env, "org/simgrid/msg/ProcessKilledError", xbt_strdup("Process killed :)"));
- // TODO emptty/adsein, comment the following line. This avoid to raise process cancelled exception at the Java level but
- // it impacts the shutdown of VMs :( see java-cloud example
- THROWF(cancel_error, 0, "process cancelled");
+ XBT_DEBUG("Trigger a cancel error at the C level");
+ THROWF(cancel_error, 0, "process cancelled");
} else {
smx_ctx_base_stop(context);
/* detach the thread and kills it */
switch(surf_action_get_state(action->sleep.surf_sleep)){
case SURF_ACTION_FAILED:
simcall->issuer->context->iwannadie = 1;
- //SMX_EXCEPTION(simcall->issuer, host_error, 0, "Host failed");
+ //SMX_EXCEPTION(simcall->issuer, host_error, 0, "Host failed");
state = SIMIX_SRC_HOST_FAILURE;
break;
if (self->context->iwannadie){
XBT_DEBUG("I wanna die!");
SIMIX_process_stop(self);
- XBT_DEBUG("SIMIX Stop done");
}
if (self->suspended) {