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

Issue 28833002: Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux sandbox. (Closed)

Created:
7 years, 2 months ago by rmcilroy
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, Jakob Kummerow
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux sandbox. Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable it to be called by the renderer process after the sandbox is sealed. BUG=312241 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231613

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : Use LazyInstance. #

Total comments: 10

Patch Set 5 : Address Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -36 lines) Patch
M base/sys_info.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M base/sys_info_linux.cc View 1 2 3 4 3 chunks +66 lines, -35 lines 0 comments Download
M content/zygote/zygote_main_linux.cc View 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
rmcilroy
jln@chromium.org: Please review changes in content/zygote. jar@chromium.org: Please review changes in base
7 years, 2 months ago (2013-10-18 10:21:53 UTC) #1
jar (doing other things)
https://codereview.chromium.org/28833002/diff/70001/base/sys_info_linux.cc File base/sys_info_linux.cc (right): https://codereview.chromium.org/28833002/diff/70001/base/sys_info_linux.cc#newcode33 base/sys_info_linux.cc:33: if (!physical_memory_valid) { I'm hopeful this is done on ...
7 years, 2 months ago (2013-10-18 19:24:14 UTC) #2
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/28833002/diff/70001/base/sys_info_linux.cc File base/sys_info_linux.cc (right): https://chromiumcodereview.appspot.com/28833002/diff/70001/base/sys_info_linux.cc#newcode33 base/sys_info_linux.cc:33: if (!physical_memory_valid) { On 2013/10/18 19:24:14, jar wrote: > ...
7 years, 2 months ago (2013-10-18 21:08:42 UTC) #3
jar (doing other things)
https://chromiumcodereview.appspot.com/28833002/diff/70001/base/sys_info_linux.cc File base/sys_info_linux.cc (right): https://chromiumcodereview.appspot.com/28833002/diff/70001/base/sys_info_linux.cc#newcode33 base/sys_info_linux.cc:33: if (!physical_memory_valid) { On 2013/10/18 21:08:42, jln wrote: > ...
7 years, 2 months ago (2013-10-18 22:19:30 UTC) #4
rmcilroy
On 2013/10/18 22:19:30, jar wrote: > https://chromiumcodereview.appspot.com/28833002/diff/70001/base/sys_info_linux.cc > File base/sys_info_linux.cc (right): > > https://chromiumcodereview.appspot.com/28833002/diff/70001/base/sys_info_linux.cc#newcode33 > ...
7 years, 2 months ago (2013-10-21 12:43:51 UTC) #5
jln (very slow on Chromium)
lgtm with small nits (you still need base/approval from jar)
7 years, 2 months ago (2013-10-21 23:27:15 UTC) #6
jln (very slow on Chromium)
https://codereview.chromium.org/28833002/diff/140001/base/sys_info_linux.cc File base/sys_info_linux.cc (right): https://codereview.chromium.org/28833002/diff/140001/base/sys_info_linux.cc#newcode36 base/sys_info_linux.cc:36: NOTREACHED(); How about just "limit = 0" ? https://codereview.chromium.org/28833002/diff/140001/base/sys_info_linux.cc#newcode40 ...
7 years, 2 months ago (2013-10-21 23:27:28 UTC) #7
jar (doing other things)
+1 for the nits by jln ...and one more nit. https://codereview.chromium.org/28833002/diff/140001/base/sys_info_linux.cc File base/sys_info_linux.cc (right): https://codereview.chromium.org/28833002/diff/140001/base/sys_info_linux.cc#newcode71 ...
7 years, 2 months ago (2013-10-21 23:54:13 UTC) #8
rmcilroy
https://codereview.chromium.org/28833002/diff/140001/base/sys_info_linux.cc File base/sys_info_linux.cc (right): https://codereview.chromium.org/28833002/diff/140001/base/sys_info_linux.cc#newcode36 base/sys_info_linux.cc:36: NOTREACHED(); On 2013/10/21 23:27:28, jln wrote: > How about ...
7 years, 2 months ago (2013-10-23 14:51:33 UTC) #9
rmcilroy
On 2013/10/23 14:51:33, rmcilroy wrote: > https://codereview.chromium.org/28833002/diff/140001/base/sys_info_linux.cc > File base/sys_info_linux.cc (right): > > https://codereview.chromium.org/28833002/diff/140001/base/sys_info_linux.cc#newcode36 > ...
7 years, 1 month ago (2013-10-28 21:59:25 UTC) #10
jar (doing other things)
lgtm
7 years, 1 month ago (2013-10-29 00:37:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/28833002/200001
7 years, 1 month ago (2013-10-29 10:05:43 UTC) #12
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=94287
7 years, 1 month ago (2013-10-29 13:04:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/28833002/200001
7 years, 1 month ago (2013-10-29 13:36:50 UTC) #14
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 1 month ago (2013-10-29 18:34:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/28833002/200001
7 years, 1 month ago (2013-10-29 19:10:35 UTC) #16
commit-bot: I haz the power
Change committed as 231613
7 years, 1 month ago (2013-10-29 19:32:49 UTC) #17
dglazkov
On 2013/10/29 19:32:49, I haz the power (commit-bot) wrote: > Change committed as 231613 This ...
7 years, 1 month ago (2013-10-29 20:13:41 UTC) #18
dglazkov
7 years, 1 month ago (2013-10-29 20:13:58 UTC) #19
Message was sent while issue was closed.
Revert in progress here: https://codereview.chromium.org/51223003

Powered by Google App Engine
This is Rietveld 408576698