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

Issue 1314823003: Make Linker.isUsed() static, and clean up the fallout. (Closed)

Created:
5 years, 3 months ago by simonb (inactive)
Modified:
5 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, mkwst+moarreviews-shell_chromium.org, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Linker.isUsed() static, and clean up the fallout. Make Linker.isUsed() static, so that client code no longer needs to instantiate a Linker simply to find out that one is not used. Clean up call sites to avoid nugatory instantiations. Fix a race that occurred in testing code (prevalent on arm64 but unseen on arm32) because of the previous non-static Linker.isUsed(), add Linker testing convenience setup function, and clean up client code that must configure a Linker for testing if required. Enable testing for arm64, and check that it now works cleanly. Tidy up a few method names and string formatting. Add a previously missing synchronized(singletonLock). BUG=385553 Committed: https://crrev.com/51958d6ded60cc90a9814220c55db2a8dce0d181 Cr-Commit-Position: refs/heads/master@{#346700}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Tiny log tweak, protected->private, rebase to master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -140 lines) Patch
M base/android/java/src/org/chromium/base/library_loader/LegacyLinker.java View 4 chunks +38 lines, -59 lines 0 comments Download
M base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java View 2 chunks +4 lines, -7 lines 0 comments Download
M base/android/java/src/org/chromium/base/library_loader/Linker.java View 1 10 chunks +62 lines, -19 lines 0 comments Download
M base/android/java/src/org/chromium/base/library_loader/ModernLinker.java View 1 chunk +4 lines, -16 lines 0 comments Download
M content/content_tests.gypi View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 4 chunks +19 lines, -23 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 2 chunks +5 lines, -5 lines 0 comments Download
M content/shell/android/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java View 2 chunks +6 lines, -6 lines 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/LinkerTests.java View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
simonb (inactive)
5 years, 3 months ago (2015-08-27 15:58:32 UTC) #2
petrcermak
LGTM with one comment. Thanks, Petr https://codereview.chromium.org/1314823003/diff/1/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java File content/public/android/java/src/org/chromium/content/app/ChildProcessService.java (right): https://codereview.chromium.org/1314823003/diff/1/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java#newcode189 content/public/android/java/src/org/chromium/content/app/ChildProcessService.java:189: if (!isLoaded && ...
5 years, 3 months ago (2015-08-27 18:52:11 UTC) #3
petrcermak
one more nit: s/cleanup/clean up/ in the title and description Thanks, Petr
5 years, 3 months ago (2015-08-27 18:53:37 UTC) #4
simonb (inactive)
On 2015/08/27 18:53:37, petrcermak wrote: > one more nit: s/cleanup/clean up/ in the title and ...
5 years, 3 months ago (2015-08-27 20:42:22 UTC) #5
simonb (inactive)
https://codereview.chromium.org/1314823003/diff/1/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java File content/public/android/java/src/org/chromium/content/app/ChildProcessService.java (right): https://codereview.chromium.org/1314823003/diff/1/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java#newcode189 content/public/android/java/src/org/chromium/content/app/ChildProcessService.java:189: if (!isLoaded && requestedSharedRelro) { On 2015/08/27 18:52:10, petrcermak ...
5 years, 3 months ago (2015-08-27 21:06:04 UTC) #6
simonb (inactive)
+sievers@ for content/ review.
5 years, 3 months ago (2015-08-28 10:44:18 UTC) #8
rmcilroy
lgtm, thanks. https://codereview.chromium.org/1314823003/diff/1/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/1314823003/diff/1/content/content_tests.gypi#newcode1957 content/content_tests.gypi:1957: ['target_arch != "x64"', { Is there still ...
5 years, 3 months ago (2015-08-28 13:24:09 UTC) #9
simonb (inactive)
https://codereview.chromium.org/1314823003/diff/1/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/1314823003/diff/1/content/content_tests.gypi#newcode1957 content/content_tests.gypi:1957: ['target_arch != "x64"', { On 2015/08/28 13:24:08, rmcilroy wrote: ...
5 years, 3 months ago (2015-08-28 14:00:42 UTC) #10
simonb (inactive)
On 2015/08/28 14:00:42, simonb wrote: > > VLOG at line 166 formats these with %d. ...
5 years, 3 months ago (2015-08-28 14:08:14 UTC) #11
no sievers
content lgtm
5 years, 3 months ago (2015-08-28 23:23:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314823003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314823003/20001
5 years, 3 months ago (2015-09-01 17:38:03 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-01 19:04:48 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 19:05:27 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/51958d6ded60cc90a9814220c55db2a8dce0d181
Cr-Commit-Position: refs/heads/master@{#346700}

Powered by Google App Engine
This is Rietveld 408576698