Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
RMA requests were not marked as detached, causing some bad frees
authordegomme <augustin.degomme@unibas.ch>
Tue, 19 Apr 2016 09:00:11 +0000 (11:00 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Tue, 19 Apr 2016 09:00:11 +0000 (11:00 +0200)
src/smpi/smpi_base.cpp

index afca679..703905f 100644 (file)
@@ -448,8 +448,8 @@ void smpi_mpi_start(MPI_Request request)
     }
 
     void* buf = request->buf;
-    if ( (! (request->flags & SSEND)) &&
-         (static_cast<int>(request->size) < xbt_cfg_get_int("smpi/send_is_detached_thresh"))) {
+    if ( (! (request->flags & SSEND)) && ((request->flags & RMA) ||
+         (static_cast<int>(request->size) < xbt_cfg_get_int("smpi/send_is_detached_thresh")))) {
       void *oldbuf = NULL;
       request->detached = 1;
       XBT_DEBUG("Send request %p is detached", request);