Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove a wrong assert. This condition isn't supposed to be true all the time: I didn...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 26 Sep 2007 15:28:08 +0000 (15:28 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 26 Sep 2007 15:28:08 +0000 (15:28 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4739 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/context.c

index 86bdbd0..77040cd 100644 (file)
@@ -336,7 +336,7 @@ static void xbt_context_stop(int retvalue) {
 #else
   __xbt_context_yield(current_context);
 #endif
-  xbt_assert0(0, "You can't be here!");
+  THROW_IMPOSSIBLE();
 }
 
 
@@ -401,7 +401,6 @@ xbt_assert0(current_context, "You have to call context_init() first.");
   int return_value = 0;
 
   if (context->save == NULL) {
-    xbt_assert(context == current_context);
     DEBUG1("[%p] **** Yielding to somebody else ****", current_context);
     DEBUG2("Saving current_context value (%p) to context(%p)->save",
             current_context, context);