index field of rentry is only for RCR, add guard condition to accessing index field.
authoryeom <yeom>
Thu, 11 Nov 2010 04:02:46 +0000 (04:02 +0000)
committeryeom <yeom>
Thu, 11 Nov 2010 04:02:46 +0000 (04:02 +0000)
Robust/src/Runtime/mlp_runtime.c

index 542dad31fe2d6256b367d69bf74e2bf57e5b99b9..7bc8c57968267be44980fc00938a36586f5fa117 100644 (file)
@@ -534,7 +534,9 @@ int ADDVECTOR(MemoryQueue *Q, REntry *r) {
   //expose entry
   int index=V->index;
   V->array[index]=r;
+#ifdef RCR
   r->index=index;
+#endif
   //*****NEED memory barrier here to ensure compiler does not reorder writes to V.array and V.index
   BARRIER();
   V->index++;