> [1023.429105] (1:Master@Jacquelin) Let's shut down the simulation and kill everyone.
> [1023.429105] (1:Master@Jacquelin) Master done.
> [1023.429105] (21:Slave 19@Provost) Received "Task_19". Processing it.
-> [1023.429105] (21:Slave 19@Provost) "Task_19" done
-> [1023.429105] (21:Slave 19@Provost) Receiving on slave_19
-
{
msg_error_t rv;
rv = MSG_process_sleep((double)jseconds);
+ if ((*env)->ExceptionOccurred(env))
+ return;
if (rv != MSG_OK) {
XBT_DEBUG("Status NOK");
jmsg_throw_status(env,rv);
msg_error_t rv = MSG_process_migrate(process, host);
if (rv != MSG_OK) {
jmsg_throw_status(env,rv);
+ return;
}
/* change the host java side */
(*env)->SetObjectField(env, jprocess, jprocess_field_Process_host, jhost);
}
msg_error_t rv;
rv = MSG_task_execute(task);
+ if ((*env)->ExceptionOccurred(env))
+ return;
if (rv != MSG_OK) {
jmsg_throw_status(env, rv);
}
alias = (*env)->GetStringUTFChars(env, jalias, 0);
rv = MSG_task_receive_ext(task, alias, (double) jtimeout, host);
+ if ((*env)->ExceptionOccurred(env))
+ return NULL;
if (rv != MSG_OK) {
jmsg_throw_status(env,rv);
return NULL;