-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/5904/#review9295
-----------------------------------------------------------

Ship it!


This is fantastic! Thanks so much!

- Benjamin Hindman


On July 11, 2012, 3:34 a.m., Zhongbo Tian wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/5904/
> -----------------------------------------------------------
> 
> (Updated July 11, 2012, 3:34 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman and Vinod Kone.
> 
> 
> Description
> -------
> 
> It seems that libprocess has memory-leaking problem.
> When state is not in pending, refs will be decreased an extra time to become 
> -1, and then memory leaked.
> So the solution I proposed is that guard the discard function with a pair of 
> increament/decrement of refs,
> and it will be safe to verify if refs is zero out of the guard scope.
> 
> 
> Diffs
> -----
> 
>   third_party/libprocess/include/process/future.hpp 1aa8ffd 
> 
> Diff: https://reviews.apache.org/r/5904/diff/
> 
> 
> Testing
> -------
> 
> Test is done in our deployment enviroment, and seems all right.
> 
> 
> Thanks,
> 
> Zhongbo Tian
> 
>

Reply via email to