- simgrid::java::JavaContext* context = static_cast<simgrid::java::JavaContext*>(SIMIX_context_self());
- context->jprocess = jprocess;
- smx_process_t process = SIMIX_process_self();
- jprocess_bind(context->jprocess, process, env);
-
- // Adrien, ugly path, just to bypass creation of context at low levels (i.e such as for the VM migration for instance)
- if (context->jprocess == nullptr)
- return;
- else
- run_jprocess(env, context->jprocess);
-}
+ simgrid::kernel::context::JavaContext* context = static_cast<simgrid::kernel::context::JavaContext*>(SIMIX_context_self());
+ context->jprocess_ = jprocess;
+ jprocess_bind(context->jprocess_, MSG_process_self(), env);