[Webkit-unassigned] [Bug 155255] MemoryPressureHandler doesn't work if cgroups aren't present in Linux

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 13 23:47:53 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=155255

--- Comment #32 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #29)
> Comment on attachment 282544 [details]
> Different approach
> 
> Looks good to me in general, but the mix of negative numbers and size_t is a
> bit shocking to me.

We can make the code a bit better by using a macro or global variable like DFGValidate or Vector do:

#define notSet (static_cast<size_t>(-1))
const size_t notFound = static_cast<size_t>(-1);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160714/2dce93a9/attachment.html>


More information about the webkit-unassigned mailing list