Description
The hook manager uses a mutex to protect availableHooks from writing during read (probably this should be a read/write mutex).
However, this mutex is not acquired in many of the reads. For example:
(mutex acquired)
https://github.com/apache/mesos/blob/1.7.0/src/hook/manager.cpp#L108-L138
(mutex not acquired!)
https://github.com/apache/mesos/blob/1.7.0/src/hook/manager.cpp#L141-L150
Also, the mutex and map are non-POD statics, which are banned:
https://github.com/apache/mesos/blob/1.9.0/src/hook/manager.cpp#L50-L51