Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Issue 2469653002: Fix incorrect usage of std::is_heap in blink::scheduler::IntrusiveHeap. (Closed)

Created:
4 years, 1 month ago by pwnall
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix incorrect usage of std::is_heap in blink::scheduler::IntrusiveHeap. IntrusiveHeap uses std::is_heap in a DCHECK, but it uses a comparator function that isn't irreflexive (the comparator is like <, but it should be like <=). This CL makes the (super simple fix) and adds the necessary plumbing for IntrusiveHeap's comparator to be unit-tested. BUG=661080 Committed: https://crrev.com/b32830fb14c0a6c36b2735089fdb3a2ce26106e0 Cr-Commit-Position: refs/heads/master@{#429026}

Patch Set 1 #

Patch Set 2 : Attempt to appease the Android compiler. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -20 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/intrusive_heap.h View 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/intrusive_heap_unittest.cc View 1 18 chunks +34 lines, -19 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
pwnall
PTAL? FWIW, I checked the irreflexive requirement against C++ 11 (not the ISO standard, but ...
4 years, 1 month ago (2016-11-01 07:01:34 UTC) #4
alex clarke (OOO till 29th)
lgtm
4 years, 1 month ago (2016-11-01 10:11:57 UTC) #9
pwnall
On 2016/11/01 10:11:57, alex clarke wrote: > lgtm Thank you for the quick turnaround!
4 years, 1 month ago (2016-11-01 16:47:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2469653002/20001
4 years, 1 month ago (2016-11-01 16:48:10 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-01 16:53:45 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 17:22:37 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b32830fb14c0a6c36b2735089fdb3a2ce26106e0
Cr-Commit-Position: refs/heads/master@{#429026}

Powered by Google App Engine
This is Rietveld 408576698