Add check to see if the msg buffer is full during msg sending
authorjzhou <jzhou>
Fri, 26 Aug 2011 18:29:56 +0000 (18:29 +0000)
committerjzhou <jzhou>
Fri, 26 Aug 2011 18:29:56 +0000 (18:29 +0000)
Robust/src/Runtime/bamboo/multicoremsg.c

index e620a8ddd4ba952de38de39924438072d735185d..e259c3842680c708dad0385f73e025ebf766d736 100644 (file)
@@ -775,6 +775,7 @@ msg:
     return -1;
   }
   if(BAMBOO_CHECK_SEND_MODE()) {
+    BAMBOO_ASSERT((msgdataindex!=msgdatalast)||(!msgdatafull));
     // during send, don't process the msg now
     return -3; 
   }