X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7516e3d43bd243928406a631bc5c9e89b2789f04..e52278566439b20cb46f86ccc08e5cf451f651bd:/src/java/jmsg.c diff --git a/src/java/jmsg.c b/src/java/jmsg.c index 0e539af967..ce812ae58c 100644 --- a/src/java/jmsg.c +++ b/src/java/jmsg.c @@ -114,7 +114,6 @@ Java_simgrid_msg_Msg_processCreate(JNIEnv* env, jclass cls, jobject jprocess_arg process->simdata->m_host->simdata->s_host, /*data*/ (void*)process, jprocess_arg,env, - __MSG_process_cleanup, &process->simdata->s_process); DEBUG1("context created (s_process=%p)",process->simdata->s_process); @@ -127,29 +126,9 @@ Java_simgrid_msg_Msg_processCreate(JNIEnv* env, jclass cls, jobject jprocess_arg process->simdata->last_errno = MSG_OK; - -#ifdef KILLME - /* add the process in the list of the process of the host */ - xbt_fifo_unshift(host->simdata->process_list, process); - - self = msg_global->current_process; - - process->simdata->context->env = env; - - /* start the java process */ - xbt_context_start(process->simdata->context); - - msg_global->current_process = self; -#endif - /* add the process to the list of the processes of the simulation */ xbt_fifo_unshift(msg_global->process_list, process); - /* add the process to the list of the processes to run in the simulation */ - // xbt_fifo_unshift(msg_global->process_to_run, process); - - // PAJE_PROCESS_NEW(process); - //#endif } JNIEXPORT void JNICALL @@ -798,7 +777,7 @@ Java_simgrid_msg_Msg_taskDestroy(JNIEnv* env, jclass cls, jobject jtask_arg) { jobject jtask; if(!task){ - jxbt_throw_notbound(env,"task",jtask); + jxbt_throw_notbound(env,"task",task); return; } jtask = (jobject)task->data;