Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
(allHost method :using MSG_get_host_number(/table) methods instead calling the globa...
[simgrid.git] / src / java / jmsg.c
index 0d9ea23..6bf0a01 100644 (file)
@@ -912,8 +912,8 @@ Java_simgrid_msg_MsgNative_allHosts(JNIEnv * env, jclass cls_arg)
   jstring jname;
   m_host_t host;
 
-  int count = xbt_fifo_size(msg_global->host);
-  m_host_t *table = (m_host_t *) xbt_fifo_to_array(msg_global->host);
+  int count = MSG_get_host_number();
+  m_host_t *table = MSG_get_host_table();
 
   jclass cls = jxbt_get_class(env, "simgrid/msg/Host");