Deleting "ci" variable from reduction message: it was a pointer and used only for...
authorFilippo Gioachin <gioachin@uiuc.edu>
Mon, 18 Jan 2010 21:38:07 +0000 (15:38 -0600)
committerFilippo Gioachin <gioachin@uiuc.edu>
Mon, 18 Jan 2010 21:38:07 +0000 (15:38 -0600)
src/ck-core/ckreduction.C
src/ck-core/ckreduction.h

index 7c094a25cc71e225d9154c96c80be26a0e9abe51..3f7f8b829bbeebcf31d7125c85e465ffa6d563f6 100644 (file)
@@ -391,7 +391,7 @@ void CkReductionMgr::contribute(contributorInfo *ci,CkReductionMsg *m)
   _TRACE_BG_TLINE_END(&(m->log));
 #endif
   DEBR((AA"Contributor %p contributed for %d in grp %d ismigratable %d \n"AB,ci,ci->redNo,thisgroup.idx,m->isMigratableContributor()));
-  m->ci=ci;
+  //m->ci=ci;
   m->redNo=ci->redNo++;
   m->sourceFlag=-1;//A single contribution
   m->gcount=0;
@@ -1291,7 +1291,7 @@ CkReductionMsg *CkReductionMsg::buildNew(int NdataSize,const void *srcData,
     memcpy(ret->data,srcData,NdataSize);
   ret->userFlag=-1;
   ret->reducer=reducer;
-  ret->ci=NULL;
+  //ret->ci=NULL;
   ret->sourceFlag=-1000;
   ret->gcount=0;
   ret->migratableContributor = true;
@@ -1731,7 +1731,7 @@ void CkNodeReductionMgr::contribute(contributorInfo *ci,CkReductionMsg *m)
     CpvAccess(_currentObj) = this;
 #endif
 
-  m->ci=ci;
+  //m->ci=ci;
   m->redNo=ci->redNo++;
   m->sourceFlag=-1;//A single contribution
   m->gcount=0;
@@ -1755,7 +1755,7 @@ void CkNodeReductionMgr::contributeWithCounter(contributorInfo *ci,CkReductionMs
     Chare *oldObj =CpvAccess(_currentObj);
     CpvAccess(_currentObj) = this;
 #endif
-  m->ci=ci;
+  //m->ci=ci;
   m->redNo=ci->redNo++;
   m->gcount=count;
 #if DEBUGRED
index 6080477699c60ee874063d30685bb6acb295ee35..be7678ca5e0ff877f7898505d05bbe228618afaa 100644 (file)
@@ -319,7 +319,7 @@ private:
         void *log;
 #endif
        CkReduction::reducerType reducer;
-       contributorInfo *ci;//Source contributor, or NULL if none
+       //contributorInfo *ci;//Source contributor, or NULL if none
        int redNo;//The serial number of this reduction
        int gcount;//Contribution to the global contributor count
         // for section multicast/reduction library