@@ -75,7 +75,7 @@ static void osc_pt2pt_accumulate_data_destructor (osc_pt2pt_accumulate_data_t *a
7575 }
7676
7777 if (acc_data -> datatype ) {
78- OBJ_RELEASE (acc_data -> datatype );
78+ OMPI_DATATYPE_RELEASE (acc_data -> datatype );
7979 }
8080}
8181
@@ -118,7 +118,7 @@ static void osc_pt2pt_pending_acc_destructor (osc_pt2pt_pending_acc_t *pending)
118118 }
119119
120120 if (NULL != pending -> datatype ) {
121- OBJ_RELEASE (pending -> datatype );
121+ OMPI_DATATYPE_RELEASE (pending -> datatype );
122122 }
123123}
124124
@@ -370,7 +370,7 @@ static inline int process_put(ompi_osc_pt2pt_module_t* module, int source,
370370
371371 osc_pt2pt_copy_on_recv (target , data , data_len , proc , put_header -> count , datatype );
372372
373- OBJ_RELEASE (datatype );
373+ OMPI_DATATYPE_RELEASE (datatype );
374374
375375 return put_header -> len ;
376376}
@@ -407,7 +407,7 @@ static inline int process_put_long(ompi_osc_pt2pt_module_t* module, int source,
407407 return OMPI_ERROR ;
408408 }
409409
410- OBJ_RELEASE (datatype );
410+ OMPI_DATATYPE_RELEASE (datatype );
411411
412412 return put_header -> len ;
413413}
@@ -532,7 +532,7 @@ static inline int process_get (ompi_osc_pt2pt_module_t* module, int target,
532532 ret = osc_pt2pt_get_post_send (module , source , get_header -> count , datatype ,
533533 target , tag_to_origin (get_header -> tag ));
534534
535- OBJ_RELEASE (datatype );
535+ OMPI_DATATYPE_RELEASE (datatype );
536536
537537 return OMPI_SUCCESS == ret ? (int ) get_header -> len : ret ;
538538}
@@ -634,7 +634,7 @@ static int osc_pt2pt_accumulate_allocate (ompi_osc_pt2pt_module_t *module, int p
634634 acc_data -> proc = proc ;
635635 acc_data -> count = count ;
636636 acc_data -> datatype = datatype ;
637- OBJ_RETAIN (datatype );
637+ OMPI_DATATYPE_RETAIN (datatype );
638638 acc_data -> op = op ;
639639 acc_data -> request_count = request_count ;
640640
@@ -728,7 +728,7 @@ static int ompi_osc_pt2pt_acc_op_queue (ompi_osc_pt2pt_module_t *module, ompi_os
728728
729729 /* save the datatype */
730730 pending_acc -> datatype = datatype ;
731- OBJ_RETAIN (datatype );
731+ OMPI_DATATYPE_RETAIN (datatype );
732732
733733 /* save the header */
734734 switch (header -> base .type ) {
@@ -1166,7 +1166,7 @@ static inline int process_acc (ompi_osc_pt2pt_module_t *module, int source,
11661166 }
11671167
11681168 /* Release datatype & op */
1169- OBJ_RELEASE (datatype );
1169+ OMPI_DATATYPE_RELEASE (datatype );
11701170
11711171 return (OMPI_SUCCESS == ret ) ? (int ) acc_header -> len : ret ;
11721172}
@@ -1197,7 +1197,7 @@ static inline int process_acc_long (ompi_osc_pt2pt_module_t* module, int source,
11971197 }
11981198
11991199 /* Release datatype & op */
1200- OBJ_RELEASE (datatype );
1200+ OMPI_DATATYPE_RELEASE (datatype );
12011201
12021202 return (OMPI_SUCCESS == ret ) ? (int ) acc_header -> len : ret ;
12031203}
@@ -1231,7 +1231,7 @@ static inline int process_get_acc(ompi_osc_pt2pt_module_t *module, int source,
12311231 uint32_t primitive_count ;
12321232 buffer = malloc (data_len );
12331233 if (OPAL_UNLIKELY (NULL == buffer )) {
1234- OBJ_RELEASE (datatype );
1234+ OMPI_DATATYPE_RELEASE (datatype );
12351235 return OMPI_ERR_OUT_OF_RESOURCE ;
12361236 }
12371237
@@ -1250,7 +1250,7 @@ static inline int process_get_acc(ompi_osc_pt2pt_module_t *module, int source,
12501250 }
12511251
12521252 /* Release datatype & op */
1253- OBJ_RELEASE (datatype );
1253+ OMPI_DATATYPE_RELEASE (datatype );
12541254
12551255 return (OMPI_SUCCESS == ret ) ? (int ) acc_header -> len : ret ;
12561256}
@@ -1281,7 +1281,7 @@ static inline int process_get_acc_long(ompi_osc_pt2pt_module_t *module, int sour
12811281 }
12821282
12831283 /* Release datatype & op */
1284- OBJ_RELEASE (datatype );
1284+ OMPI_DATATYPE_RELEASE (datatype );
12851285
12861286 return OMPI_SUCCESS == ret ? (int ) acc_header -> len : ret ;
12871287}
@@ -1313,7 +1313,7 @@ static inline int process_cswap (ompi_osc_pt2pt_module_t *module, int source,
13131313 }
13141314
13151315 /* Release datatype */
1316- OBJ_RELEASE (datatype );
1316+ OMPI_DATATYPE_RELEASE (datatype );
13171317
13181318 return (OMPI_SUCCESS == ret ) ? (int ) cswap_header -> len : ret ;
13191319}
0 commit comments