Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a dangerous MSG_task_ref() needed by lua to not free tasks twice when they get...
[simgrid.git] / src / msg / gos.c
index 321bfef..4a999fe 100644 (file)
@@ -44,8 +44,9 @@ MSG_error_t MSG_task_execute(m_task_t task)
   CHECK_HOST();
 
   simdata = task->simdata;
-  xbt_assert1((!simdata->compute)
-              && (task->simdata->refcount == 1),
+
+  xbt_assert1((!simdata->compute),
+              //&& (task->simdata->refcount == 1), FIXME: since lua bindings play with this refcount to make sure that tasks don't get gc() twice, this field cannot be used here as is anymore
               "This task is executed somewhere else. Go fix your code! %d", task->simdata->refcount);
 
   DEBUG1("Computing on %s", MSG_process_self()->simdata->m_host->name);