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

Issue 2850203003: Do not kill recently killed ARC processes again (Closed)

Created:
3 years, 7 months ago by Yusuke Sato
Modified:
3 years, 7 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not kill recently killed ARC processes again ARC processes sometimes respawn right after being killed. In that case, killing them every time is just a waste of resources. BUG=706048 TEST=try TEST=Follow crbug.com/706048#c76, confirm Chrome no longer kills the processes too often. Review-Url: https://codereview.chromium.org/2850203003 Cr-Commit-Position: refs/heads/master@{#468835} Committed: https://chromium.googlesource.com/chromium/src/+/b784d0769dce13bd2efc4ae9bf13b0ffe8523a03

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments from cylee #

Total comments: 4

Patch Set 3 : address comments from Luis #

Total comments: 4

Patch Set 4 : fix comment typo #

Patch Set 5 : fix another typo #

Patch Set 6 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -6 lines) Patch
M chrome/browser/memory/tab_manager_delegate_chromeos.h View 1 2 6 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/memory/tab_manager_delegate_chromeos.cc View 1 2 3 4 5 5 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc View 1 2 3 4 5 5 chunks +96 lines, -4 lines 1 comment Download

Messages

Total messages: 35 (22 generated)
Yusuke Sato
PTAL too. This is less important than https://codereview.chromium.org/2852093003/ but I think this is still sometimes ...
3 years, 7 months ago (2017-05-01 23:12:19 UTC) #4
cylee1
https://codereview.chromium.org/2850203003/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc File chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc (right): https://codereview.chromium.org/2850203003/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc#newcode281 chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc:281: now - base::TimeDelta::FromSeconds(60); nit: do you mind making kArcSkipKillingTime ...
3 years, 7 months ago (2017-05-02 19:51:41 UTC) #8
Yusuke Sato
Please take another look. https://codereview.chromium.org/2850203003/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc File chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc (right): https://codereview.chromium.org/2850203003/diff/1/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc#newcode281 chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc:281: now - base::TimeDelta::FromSeconds(60); On 2017/05/02 ...
3 years, 7 months ago (2017-05-02 20:12:56 UTC) #10
Luis Héctor Chávez
https://codereview.chromium.org/2850203003/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2850203003/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode564 chrome/browser/memory/tab_manager_delegate_chromeos.cc:564: auto it = recently_killed_arc_processes_.find(process_name); nit: maybe const auto. https://codereview.chromium.org/2850203003/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.h ...
3 years, 7 months ago (2017-05-02 20:16:28 UTC) #12
Yusuke Sato
PTAL https://codereview.chromium.org/2850203003/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.cc File chrome/browser/memory/tab_manager_delegate_chromeos.cc (right): https://codereview.chromium.org/2850203003/diff/20001/chrome/browser/memory/tab_manager_delegate_chromeos.cc#newcode564 chrome/browser/memory/tab_manager_delegate_chromeos.cc:564: auto it = recently_killed_arc_processes_.find(process_name); On 2017/05/02 20:16:27, Luis ...
3 years, 7 months ago (2017-05-02 20:47:32 UTC) #17
cylee1
lgtm https://codereview.chromium.org/2850203003/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc File chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc (right): https://codereview.chromium.org/2850203003/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc#newcode288 chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc:288: // (kArcSkipKillingTimeInSeconds + 1) seconds ago. In this ...
3 years, 7 months ago (2017-05-02 20:59:53 UTC) #18
Luis Héctor Chávez
lgtm
3 years, 7 months ago (2017-05-02 21:08:46 UTC) #19
Georges Khalil
lgtm % nit. https://codereview.chromium.org/2850203003/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc File chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc (right): https://codereview.chromium.org/2850203003/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc#newcode259 chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc:259: // When the process name is ...
3 years, 7 months ago (2017-05-02 21:36:31 UTC) #22
Yusuke Sato
Thanks! https://codereview.chromium.org/2850203003/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc File chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc (right): https://codereview.chromium.org/2850203003/diff/40001/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc#newcode259 chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc:259: // When the process name is not in ...
3 years, 7 months ago (2017-05-02 21:40:11 UTC) #23
Yusuke Sato
https://codereview.chromium.org/2850203003/diff/100001/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc File chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc (right): https://codereview.chromium.org/2850203003/diff/100001/chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc#newcode407 chrome/browser/memory/tab_manager_delegate_chromeos_unittest.cc:407: EXPECT_EQ(1U, processes_map.count("not-visible")); Rebased on top of the other CL. ...
3 years, 7 months ago (2017-05-02 22:56:56 UTC) #26
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/2850203003/100001
3 years, 7 months ago (2017-05-03 00:23:06 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/b784d0769dce13bd2efc4ae9bf13b0ffe8523a03
3 years, 7 months ago (2017-05-03 00:29:19 UTC) #34
findit-for-me
3 years, 7 months ago (2017-05-03 01:30:40 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2855003003/ by
findit-for-me@appspot.gserviceaccount.com.

The reason for reverting is: 
Findit (https://goo.gl/kROfz5) identified CL at revision 468835 as the
culprit for failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb....

Powered by Google App Engine
This is Rietveld 408576698