CkCallback: Clean up new array section constructor
authorPhil Miller <mille121@illinois.edu>
Thu, 30 Jun 2011 03:11:25 +0000 (20:11 -0700)
committerPhil Miller <mille121@illinois.edu>
Thu, 30 Jun 2011 03:11:25 +0000 (20:11 -0700)
src/ck-core/ckcallback.C

index c6e5ab5b7ac98433c5fab7a08c124f83c4703f66..57b4a4360f5bf5441a172dc8bdd76cbd8ea47e65 100644 (file)
@@ -151,6 +151,15 @@ CkCallback::CkCallback(int ep,CProxySection_ArrayBase &sectElt,CmiBool doInline)
        secID=sectElt.ckGetSectionID(0); 
 }
 
+CkCallback::CkCallback(int ep, CkSectionID &id) {
+#ifndef CMK_OPTIMIZE
+      bzero(this, sizeof(CkCallback));
+#endif
+      type=bcastSection;
+      d.section.ep=ep;
+      secID=id;
+}
+
 CkCallback::CkCallback(ArrayElement *p, int ep,CmiBool doInline) {
 #ifndef CMK_OPTIMIZE
       bzero(this, sizeof(CkCallback));
@@ -271,12 +280,6 @@ void CkCallback::send(void *msg) const
                break;
        };
 }
-CkCallback::CkCallback(int ep, CkSectionID &id)
-       {
-               type=bcastSection;
-               d.section.ep=ep;
-               secID=id;
-       }
 
 void CkCallback::pup(PUP::er &p) {
   //p((char*)this, sizeof(CkCallback));