mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Mahler" <>
Subject Review Request 39363: Fixed a double deletion race in ProcessManager::wait.
Date Thu, 15 Oct 2015 23:32:20 GMT

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

Review request for mesos, Jie Yu and Joris Van Remoortere.

Bugs: MESOS-3728

Repository: mesos


The current code non-atomically checks for the gate being empty in order to have last thread
to arrive at the gate delete it. This is racy, and can lead to multiple threads trying to
delete the gate! The information about how many waiters remain must come atomically from the
call to Gate::arrive.


  3rdparty/libprocess/src/gate.hpp 7d5df706c601c3a1e2055d7f9b78caea0f4182e8 
  3rdparty/libprocess/src/process.cpp 0454554e7b6a39f94cfea02f08ca51ef6b35859a 



Ran the tests in a loop.


Ben Mahler

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