X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/93c48481b5ba7bf1a72523594d8a3b09ca5571c4..76a4d575ce07a045a2dc097433ec94ba35715b9f:/src/jmsg.c diff --git a/src/jmsg.c b/src/jmsg.c index dbe6099cf9..b25f487267 100644 --- a/src/jmsg.c +++ b/src/jmsg.c @@ -837,13 +837,17 @@ JNIEXPORT void JNICALL } XBT_INFO("Clean native world"); - /* cleanup native stuff */ - rv = MSG_OK != MSG_clean(); +} +JNIEXPORT void JNICALL + JNICALL Java_org_simgrid_msg_Msg_clean(JNIEnv * env, jclass cls) +{ + /* cleanup native stuff. Calling it is ... useless since leaking memory at the end of the simulation is a non-issue */ + MSG_error_t rv = MSG_OK != MSG_clean(); jxbt_check_res("MSG_clean()", rv, MSG_OK, bprintf ("unexpected error : MSG_clean() failed .. please report this bug ")); } - + JNIEXPORT jint JNICALL Java_org_simgrid_msg_MsgNative_processKillAll(JNIEnv * env, jclass cls, jint jresetPID)