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

Issue 12223064: base: Fix parsing and add dalvik-heap-limit (Closed)

Created:
7 years, 10 months ago by epenner
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, apatrick_chromium, wtc
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

This fixes the overflows identified in the parsing function, and adds the dalvik-heap-limit. BUG=176201 NOTRY=true No try since it has passed many times and is taking days in the CQ. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182986

Patch Set 1 #

Patch Set 2 : Fix unit test. #

Patch Set 3 : Fix tests. #

Total comments: 2

Patch Set 4 : Remove Android specific path. #

Total comments: 2

Patch Set 5 : Address feedback, #

Total comments: 19

Patch Set 6 : Reduce scope. #

Patch Set 7 : CHECK overflow of int64. #

Patch Set 8 : #

Patch Set 9 : Address feedback. #

Patch Set 10 : Rebase. #

Patch Set 11 : Rebase. #

Patch Set 12 : Remove CHECKs. Return error instead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -15 lines) Patch
M base/sys_info.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/sys_info_android.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +50 lines, -15 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
epenner
Ptal. Unfortunately this combined with ccameron's last patch still doesn't allocate us the full limit. ...
7 years, 10 months ago (2013-02-11 19:20:31 UTC) #1
ccameron
Perhaps instead you could override GLContext::GetTotalGpuMemory for android (in gl_context_android.cc) instead? That way, the Davlik ...
7 years, 10 months ago (2013-02-11 20:05:32 UTC) #2
epenner
Good point. That gets rid of all the Android specific code. I'll try moving the ...
7 years, 10 months ago (2013-02-11 22:41:56 UTC) #3
ccameron
On 2013/02/11 22:41:56, epenner wrote: > Good point. That gets rid of all the Android ...
7 years, 10 months ago (2013-02-11 23:59:14 UTC) #4
epenner
Thanks Chris. Ptal, I think I removed that bit. I'm going to verify with some ...
7 years, 10 months ago (2013-02-12 00:43:20 UTC) #5
ccameron
lgtm, with couple nits. https://codereview.chromium.org/12223064/diff/10002/content/common/gpu/gpu_memory_manager.cc File content/common/gpu/gpu_memory_manager.cc (right): https://codereview.chromium.org/12223064/diff/10002/content/common/gpu/gpu_memory_manager.cc#newcode192 content/common/gpu/gpu_memory_manager.cc:192: // We don't need to ...
7 years, 10 months ago (2013-02-12 01:56:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12223064/8015
7 years, 10 months ago (2013-02-12 02:19:41 UTC) #7
commit-bot: I haz the power
Presubmit check for 12223064-8015 failed and returned exit status 1. INFO:root:Found 8 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-12 02:19:51 UTC) #8
epenner
Adding piman and jar for OWNERS lgtm.
7 years, 10 months ago (2013-02-12 02:45:17 UTC) #9
piman
lgtm
7 years, 10 months ago (2013-02-12 02:52:46 UTC) #10
jar (doing other things)
https://chromiumcodereview.appspot.com/12223064/diff/8015/base/sys_info_android.cc File base/sys_info_android.cc (right): https://chromiumcodereview.appspot.com/12223064/diff/8015/base/sys_info_android.cc#newcode71 base/sys_info_android.cc:71: // truncate it to reasonable value to avoid overflows ...
7 years, 10 months ago (2013-02-12 17:25:23 UTC) #11
klobag.chromium
https://chromiumcodereview.appspot.com/12223064/diff/8015/base/sys_info_android.cc File base/sys_info_android.cc (right): https://chromiumcodereview.appspot.com/12223064/diff/8015/base/sys_info_android.cc#newcode71 base/sys_info_android.cc:71: // truncate it to reasonable value to avoid overflows ...
7 years, 10 months ago (2013-02-12 18:33:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12223064/8015
7 years, 10 months ago (2013-02-12 22:11:57 UTC) #13
commit-bot: I haz the power
Presubmit check for 12223064-8015 failed and returned exit status 1. INFO:root:Found 8 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-12 22:12:15 UTC) #14
epenner
Adding gman and apatrick for ui/gl LGTM. Regarding base, klobag as addressed the concern there. ...
7 years, 10 months ago (2013-02-12 22:16:22 UTC) #15
jar (doing other things)
https://chromiumcodereview.appspot.com/12223064/diff/8015/base/sys_info_android.cc File base/sys_info_android.cc (right): https://chromiumcodereview.appspot.com/12223064/diff/8015/base/sys_info_android.cc#newcode71 base/sys_info_android.cc:71: // truncate it to reasonable value to avoid overflows ...
7 years, 10 months ago (2013-02-13 01:39:59 UTC) #16
epenner
Ptal. I'm hoping this addresses the concerns. If there is a larger concern with how ...
7 years, 10 months ago (2013-02-13 03:33:39 UTC) #17
klobag.chromium
On 2013/02/13 03:33:39, epenner wrote: > Ptal. I'm hoping this addresses the concerns. If there ...
7 years, 10 months ago (2013-02-13 20:22:24 UTC) #18
jar (doing other things)
re: base changes. see comments below. https://codereview.chromium.org/12223064/diff/12004/base/sys_info_android.cc File base/sys_info_android.cc (right): https://codereview.chromium.org/12223064/diff/12004/base/sys_info_android.cc#newcode66 base/sys_info_android.cc:66: CHECK('0' <= str[length ...
7 years, 10 months ago (2013-02-13 21:54:11 UTC) #19
jar (doing other things)
https://codereview.chromium.org/12223064/diff/12004/base/sys_info_android.cc File base/sys_info_android.cc (right): https://codereview.chromium.org/12223064/diff/12004/base/sys_info_android.cc#newcode92 base/sys_info_android.cc:92: result = std::min<int64>(std::max<int64>(16 * MB, result), 1024 * MB) ...
7 years, 10 months ago (2013-02-14 01:48:41 UTC) #20
epenner
I've scoped this down to the parsing changes first, but I've addressed all your comments. ...
7 years, 10 months ago (2013-02-14 04:18:36 UTC) #21
epenner
Ptal. Added overflow protection.
7 years, 10 months ago (2013-02-14 05:39:42 UTC) #22
jar (doing other things)
Please add the comments explaining the choices for bounding the values, and consider my other ...
7 years, 10 months ago (2013-02-15 00:18:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12223064/22003
7 years, 10 months ago (2013-02-15 03:00:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12223064/35001
7 years, 10 months ago (2013-02-15 20:33:09 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12223064/35001
7 years, 10 months ago (2013-02-15 22:26:12 UTC) #26
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 10 months ago (2013-02-16 04:00:19 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/12223064/35001
7 years, 10 months ago (2013-02-16 08:34:11 UTC) #28
commit-bot: I haz the power
7 years, 10 months ago (2013-02-16 18:15:51 UTC) #29
Message was sent while issue was closed.
Change committed as 182986

Powered by Google App Engine
This is Rietveld 408576698