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

Issue 1361963002: Re-land architecture for cross-process memory notification suppressing (Closed)

Created:
5 years, 3 months ago by petrcermak
Modified:
5 years, 3 months ago
Reviewers:
Sami, nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, Primiano Tucci (use gerrit), chrisha, huangs, rmcilroy
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-land architecture for cross-process memory notification suppressing This patch re-lands https://codereview.chromium.org/1332583002/ after it was reverted in https://codereview.chromium.org/1359873002/ because it was causing failures on the Cast Linux buildbot. The failures were caused by std::set operations being carried out inside DCHECK macros, which are not evaluated on release builds: DCHECK(memory_message_filters_.insert(filter).second); This patch moves the std::set operations outside the macros so that they would always be evaluated: const bool success = memory_message_filters_.insert(filter).second; DCHECK(success); BUG=516776 Committed: https://crrev.com/29bd40509cd5f705d686a97f2c91e3a75501cf2a Cr-Commit-Position: refs/heads/master@{#350503}

Patch Set 1 : Original patch (for easier diff) #

Patch Set 2 : Fixed patch #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -2 lines) Patch
M content/browser/browser_child_process_host_impl.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A content/browser/memory/memory_message_filter.h View 1 chunk +35 lines, -0 lines 0 comments Download
A content/browser/memory/memory_message_filter.cc View 1 chunk +34 lines, -0 lines 0 comments Download
A content/browser/memory/memory_pressure_controller.h View 1 chunk +48 lines, -0 lines 0 comments Download
A content/browser/memory/memory_pressure_controller.cc View 1 1 chunk +73 lines, -0 lines 2 comments Download
A content/browser/memory/memory_pressure_controller_browsertest.cc View 1 chunk +131 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/child/child_thread_impl.cc View 2 chunks +4 lines, -2 lines 0 comments Download
A content/child/memory/child_memory_message_filter.h View 1 chunk +32 lines, -0 lines 0 comments Download
A content/child/memory/child_memory_message_filter.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 chunk +1 line, -0 lines 0 comments Download
A content/common/memory_messages.h View 1 chunk +22 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
petrcermak
Hi, Can you please review this re-land (it's just a tiny fix)? Thanks, Petr
5 years, 3 months ago (2015-09-23 10:13:41 UTC) #2
Sami
lgtm to reland. https://codereview.chromium.org/1361963002/diff/20001/content/browser/memory/memory_pressure_controller.cc File content/browser/memory/memory_pressure_controller.cc (right): https://codereview.chromium.org/1361963002/diff/20001/content/browser/memory/memory_pressure_controller.cc#newcode25 content/browser/memory/memory_pressure_controller.cc:25: DCHECK(success); This might complain about |success| ...
5 years, 3 months ago (2015-09-23 10:29:44 UTC) #3
petrcermak
Thanks for your comments. Petr https://codereview.chromium.org/1361963002/diff/20001/content/browser/memory/memory_pressure_controller.cc File content/browser/memory/memory_pressure_controller.cc (right): https://codereview.chromium.org/1361963002/diff/20001/content/browser/memory/memory_pressure_controller.cc#newcode25 content/browser/memory/memory_pressure_controller.cc:25: DCHECK(success); On 2015/09/23 10:29:44, ...
5 years, 3 months ago (2015-09-23 10:32:37 UTC) #4
petrcermak
nasko@: Hi, could I please get an owner stamp for this re-land? Thanks, Petr
5 years, 3 months ago (2015-09-23 10:33:11 UTC) #6
nasko
LGTM
5 years, 3 months ago (2015-09-23 13:56:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1361963002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1361963002/20001
5 years, 3 months ago (2015-09-23 18:19:12 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/111170)
5 years, 3 months ago (2015-09-23 19:53:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1361963002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1361963002/20001
5 years, 3 months ago (2015-09-24 07:45:48 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-24 08:29:02 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/29bd40509cd5f705d686a97f2c91e3a75501cf2a Cr-Commit-Position: refs/heads/master@{#350503}
5 years, 3 months ago (2015-09-24 08:29:47 UTC) #15
petrcermak
This patch was merged into https://codereview.chromium.org/1336363002/ after the Blink merge.
5 years, 3 months ago (2015-09-24 13:18:24 UTC) #16
petrcermak
5 years, 3 months ago (2015-09-24 13:19:33 UTC) #17
Message was sent while issue was closed.
On 2015/09/24 13:18:24, petrcermak wrote:
> This patch was merged into https://codereview.chromium.org/1336363002/ after
the
> Blink merge.

Sorry, the previous message belonged to a different patch
(https://codereview.chromium.org/1311343007/ and
https://codereview.chromium.org/1342833004/).

Powered by Google App Engine
This is Rietveld 408576698