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

Issue 408483004: Avoid fragmenting address space on small windows systems. (Closed)

Created:
6 years, 5 months ago by Tom Sepez
Modified:
6 years, 1 month ago
Reviewers:
jschuh, cevans, Chris Evans
CC:
jschuh, scottmg, blink-reviews, blink-reviews-wtf_chromium.org, Mikhail, abarth-chromium
Project:
blink
Visibility:
Public.

Description

Prevent PageAllocator from fragmenting address space on small Windows systems. Peform a runtime check in the 32-bit windows code only to see if the address space is highly constrained by the OS. If so, we give up some randomness in exchange for memory utilization efficiency. BUG=394591 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178586

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment. #

Patch Set 3 : Move comment higher. #

Total comments: 1

Patch Set 4 : Even better comment, same code. #

Patch Set 5 : Check via IsWow64Process(). #

Total comments: 1

Patch Set 6 : Justin's nit. #

Total comments: 1

Patch Set 7 : Use CPU(32BIT) macro. #

Patch Set 8 : Remove refs to X86_64 in comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -2 lines) Patch
M Source/wtf/PageAllocator.cpp View 1 2 3 4 5 6 7 2 chunks +26 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Tom Sepez
Chris, please take a look. Thanks.
6 years, 5 months ago (2014-07-18 17:46:57 UTC) #1
Chris Evans
https://codereview.chromium.org/408483004/diff/1/Source/wtf/PageAllocator.cpp File Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/408483004/diff/1/Source/wtf/PageAllocator.cpp#newcode71 Source/wtf/PageAllocator.cpp:71: if (systemInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL) I don't understand this. It ...
6 years, 5 months ago (2014-07-18 18:03:47 UTC) #2
Tom Sepez
https://codereview.chromium.org/408483004/diff/1/Source/wtf/PageAllocator.cpp File Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/408483004/diff/1/Source/wtf/PageAllocator.cpp#newcode71 Source/wtf/PageAllocator.cpp:71: if (systemInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL) On 2014/07/18 18:03:47, Chris Evans ...
6 years, 5 months ago (2014-07-18 18:10:06 UTC) #3
Chris Evans
https://codereview.chromium.org/408483004/diff/10002/Source/wtf/PageAllocator.cpp File Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/408483004/diff/10002/Source/wtf/PageAllocator.cpp#newcode72 Source/wtf/PageAllocator.cpp:72: if (systemInfo.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL) Ah. Maybe I get it ...
6 years, 5 months ago (2014-07-18 18:21:00 UTC) #4
Tom Sepez
On 2014/07/18 18:21:00, Chris Evans wrote: > https://codereview.chromium.org/408483004/diff/10002/Source/wtf/PageAllocator.cpp > File Source/wtf/PageAllocator.cpp (right): > > https://codereview.chromium.org/408483004/diff/10002/Source/wtf/PageAllocator.cpp#newcode72 ...
6 years, 5 months ago (2014-07-18 18:22:50 UTC) #5
Chris Evans
On 2014/07/18 18:22:50, Tom Sepez wrote: > On 2014/07/18 18:21:00, Chris Evans wrote: > > ...
6 years, 5 months ago (2014-07-18 18:32:35 UTC) #6
Tom Sepez
Are you OK with this comment, Chris?
6 years, 5 months ago (2014-07-21 16:38:28 UTC) #7
jschuh
https://codereview.chromium.org/408483004/diff/60001/Source/wtf/PageAllocator.cpp File Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/408483004/diff/60001/Source/wtf/PageAllocator.cpp#newcode69 Source/wtf/PageAllocator.cpp:69: // is running under WOW64, then it has 3 ...
6 years, 5 months ago (2014-07-21 16:43:45 UTC) #8
Chris Evans
LGTM. Much clearer now, thanks. One final suggestion; take it or leave it at your ...
6 years, 5 months ago (2014-07-21 18:02:53 UTC) #9
Tom Sepez
Source/wtf/PageAllocator.cpp:65: #if !CPU(X86_64) > Nit: probably clearer with the new-ish: > #if CPU(32BIT) Ooooh. Shiny. ...
6 years, 5 months ago (2014-07-21 20:07:33 UTC) #10
Tom Sepez
The CQ bit was checked by tsepez@chromium.org
6 years, 5 months ago (2014-07-21 20:09:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/408483004/120001
6 years, 5 months ago (2014-07-21 20:09:48 UTC) #12
commit-bot: I haz the power
Change committed as 178586
6 years, 5 months ago (2014-07-21 21:10:36 UTC) #13
Tom Sepez
On 2014/07/21 21:10:36, I haz the power (commit-bot) wrote: > Change committed as 178586 Planning ...
6 years, 1 month ago (2014-11-12 17:56:05 UTC) #14
Tom Sepez
6 years, 1 month ago (2014-11-12 18:02:29 UTC) #15
Message was sent while issue was closed.
On 2014/11/12 17:56:05, Tom Sepez wrote:
> On 2014/07/21 21:10:36, I haz the power (commit-bot) wrote:
> > Change committed as 178586
> Planning to revert due to compatibility of IsWow64Process().
Revert CL is https://codereview.chromium.org/721813002/

Powered by Google App Engine
This is Rietveld 408576698