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

Issue 1349673003: Ensure low-memory renderers retry failed loads correctly. (Closed)

Created:
5 years, 3 months ago by simonb (inactive)
Modified:
5 years, 3 months ago
Reviewers:
rmcilroy, petrcermak
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure low-memory renderers retry failed loads correctly. LibraryLoader uses isUsingBrowserSharedRelros() to decide whether to retry a fixed address load for the browser. On a low-memory target, this function will currently return true for both browser and renderer processes. This means that any renderer fixed load retry for low-memory will also occur in LibraryLoader, rather than in ChildProcessService. This works, but a side effect is that UMA statistics for failed renderer fixed address load are not updated correctly by ChildProcessService (such an event will however not register as a failed browser load either, because the function to push UMA values on browser load is not called for a child process). Fixed by making isUsingBrowserSharedRelros() return false if not in the browser process, regardless of any low-memory/normal-memory setting. Additionally, make ...ForTesting functions final, and clean up a few portions of testing code for tighter operation. BUG=460499 Committed: https://crrev.com/1f11873066a51ebe84e302128957ddc5ee594065 Cr-Commit-Position: refs/heads/master@{#349420}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update for review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -22 lines) Patch
M base/android/java/src/org/chromium/base/library_loader/LegacyLinker.java View 1 chunk +1 line, -1 line 0 comments Download
M base/android/java/src/org/chromium/base/library_loader/Linker.java View 1 9 chunks +21 lines, -21 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
simonb (inactive)
5 years, 3 months ago (2015-09-16 17:43:02 UTC) #2
petrcermak
LGTM with one comment and two description nits: 1) I think the correct preposition is ...
5 years, 3 months ago (2015-09-16 18:44:21 UTC) #3
simonb (inactive)
https://codereview.chromium.org/1349673003/diff/1/base/android/java/src/org/chromium/base/library_loader/Linker.java File base/android/java/src/org/chromium/base/library_loader/Linker.java (right): https://codereview.chromium.org/1349673003/diff/1/base/android/java/src/org/chromium/base/library_loader/Linker.java#newcode319 base/android/java/src/org/chromium/base/library_loader/Linker.java:319: public static final int getImplementationForTesting() { On 2015/09/16 18:44:21, ...
5 years, 3 months ago (2015-09-17 10:36:15 UTC) #4
rmcilroy
lgtm, thanks.
5 years, 3 months ago (2015-09-17 10:41:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1349673003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1349673003/20001
5 years, 3 months ago (2015-09-17 13:38:09 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-17 14:58:29 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-09-17 14:59:06 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1f11873066a51ebe84e302128957ddc5ee594065
Cr-Commit-Position: refs/heads/master@{#349420}

Powered by Google App Engine
This is Rietveld 408576698