Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a memleak coming from cyclic references in smart pointers
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 25 Sep 2019 11:00:50 +0000 (13:00 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 25 Sep 2019 11:16:26 +0000 (13:16 +0200)
commit07c1b80cf296c0aa4995b4a85c05d376329b540b
treead8bc4ad3df4ef3c00708c11e89c4d326d0f3397
parentc512c087dd1af3e2f0e6988c193899b4dab76c73
fix a memleak coming from cyclic references in smart pointers

Before that change, the SMPI extension of actors got a smart reference
onto the S4U actor. That prevented S4U actors from being garbage
collected, since a SMPI extension is freed (and its smart references
released) only when the S4U actor is destroyed.

The change of this commit simply replace smart references with dumb
pointers to break the deadlock in the reference cycle, so that s4u
actors get collected after use.
src/smpi/include/smpi_actor.hpp
src/smpi/internals/smpi_actor.cpp