mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Conway <>
Subject Review Request 45999: Ensure GC is terminated last during libprocess shutdown.
Date Mon, 11 Apr 2016 03:49:00 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos and Joris Van Remoortere.

Bugs: MESOS-5144

Repository: mesos


Without this change, `finalize()` terminates processes in the order
that they happen to be found when iterating over the `processes`
map. That means that if the GarbageCollector process is terminated
while any GC-managed processes are still running, those processes
will not be GC'd (i.e., they will be leaked).

Fix this by skipping the garbage collector process when iterating
over `processes` in `finalize()`, and then only terminating it after
all other processes have been terminated.


  3rdparty/libprocess/src/process.cpp 5e9dcfdc52f3a8223bc43af149b8e1f5dbdf5b0a 



make check

Confirmed reduction of leaked memory via ASAN on Linux/amd64.


Neil Conway

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message