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

Issue 1383153002: Fix PartitionAlloc randomization on 32-bit systems (Closed)

Created:
5 years, 2 months ago by jschuh
Modified:
5 years, 2 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix PartitionAlloc randomization on 32-bit systems Make PartitionAlloc reduce churn on Windows system allocations, and use less aggressive randomization on 32-bit systems in general. BUG=538479, 394591 TBR=jchaffraix@chromium.org Committed: https://crrev.com/794a0e84c6d07da73b687bda35cea145310d2c76 Cr-Commit-Position: refs/heads/master@{#352477}

Patch Set 1 : wip #

Patch Set 2 : discard tweak #

Patch Set 3 : linux build fix #

Patch Set 4 : move discardable memory to a separate CL #

Patch Set 5 : slack #

Total comments: 6

Patch Set 6 : action feedback and remove explicit commit #

Total comments: 11

Patch Set 7 : random fix #

Patch Set 8 : jfb was half right #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -65 lines) Patch
M third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp View 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/PageAllocator.cpp View 1 2 3 4 5 6 7 5 chunks +62 lines, -65 lines 2 comments Download

Messages

Total messages: 40 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1383153002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1383153002/90001
5 years, 2 months ago (2015-10-04 08:55:30 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-04 10:26:37 UTC) #7
jschuh
I switched to a reserve-commit approach for allocation probing, to make it more performant on ...
5 years, 2 months ago (2015-10-05 17:50:17 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1383153002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1383153002/130001
5 years, 2 months ago (2015-10-05 18:31:17 UTC) #11
Tom Sepez
https://codereview.chromium.org/1383153002/diff/130001/third_party/WebKit/Source/wtf/PageAllocator.cpp File third_party/WebKit/Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/1383153002/diff/130001/third_party/WebKit/Source/wtf/PageAllocator.cpp#newcode116 third_party/WebKit/Source/wtf/PageAllocator.cpp:116: // Use a linear probe on 32-bit systems, where ...
5 years, 2 months ago (2015-10-05 19:07:30 UTC) #12
Tom Sepez
https://codereview.chromium.org/1383153002/diff/130001/third_party/WebKit/Source/wtf/PageAllocator.cpp File third_party/WebKit/Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/1383153002/diff/130001/third_party/WebKit/Source/wtf/PageAllocator.cpp#newcode104 third_party/WebKit/Source/wtf/PageAllocator.cpp:104: if (!(reinterpret_cast<uintptr_t>(ret) & alignOffsetMask)) { nit: maybe reads cleaner ...
5 years, 2 months ago (2015-10-05 19:13:31 UTC) #13
jschuh
On 2015/10/05 19:07:30, Tom Sepez wrote: > https://codereview.chromium.org/1383153002/diff/130001/third_party/WebKit/Source/wtf/PageAllocator.cpp > File third_party/WebKit/Source/wtf/PageAllocator.cpp (right): > > https://codereview.chromium.org/1383153002/diff/130001/third_party/WebKit/Source/wtf/PageAllocator.cpp#newcode116 ...
5 years, 2 months ago (2015-10-05 19:16:16 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/116567)
5 years, 2 months ago (2015-10-05 19:47:38 UTC) #16
jschuh
ptal https://codereview.chromium.org/1383153002/diff/130001/third_party/WebKit/Source/wtf/PageAllocator.cpp File third_party/WebKit/Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/1383153002/diff/130001/third_party/WebKit/Source/wtf/PageAllocator.cpp#newcode104 third_party/WebKit/Source/wtf/PageAllocator.cpp:104: if (!(reinterpret_cast<uintptr_t>(ret) & alignOffsetMask)) { On 2015/10/05 19:13:31, ...
5 years, 2 months ago (2015-10-05 20:02:29 UTC) #17
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-05 20:03:13 UTC) #18
JF
https://codereview.chromium.org/1383153002/diff/150001/third_party/WebKit/Source/wtf/PageAllocator.cpp File third_party/WebKit/Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/1383153002/diff/150001/third_party/WebKit/Source/wtf/PageAllocator.cpp#newcode124 third_party/WebKit/Source/wtf/PageAllocator.cpp:124: #if OS(POSIX) && (CPU(X86_64) && CPU(ARM64)) This check is ...
5 years, 2 months ago (2015-10-05 20:18:09 UTC) #20
jschuh
https://codereview.chromium.org/1383153002/diff/150001/third_party/WebKit/Source/wtf/PageAllocator.cpp File third_party/WebKit/Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/1383153002/diff/150001/third_party/WebKit/Source/wtf/PageAllocator.cpp#newcode124 third_party/WebKit/Source/wtf/PageAllocator.cpp:124: #if OS(POSIX) && (CPU(X86_64) && CPU(ARM64)) On 2015/10/05 20:18:09, ...
5 years, 2 months ago (2015-10-05 20:24:17 UTC) #21
JF
https://codereview.chromium.org/1383153002/diff/150001/third_party/WebKit/Source/wtf/PageAllocator.cpp File third_party/WebKit/Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/1383153002/diff/150001/third_party/WebKit/Source/wtf/PageAllocator.cpp#newcode73 third_party/WebKit/Source/wtf/PageAllocator.cpp:73: ret = VirtualAlloc(0, len, MEM_RESERVE | MEM_COMMIT, accessFlag); It's ...
5 years, 2 months ago (2015-10-05 20:32:39 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1383153002/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1383153002/170001
5 years, 2 months ago (2015-10-05 20:34:01 UTC) #25
jschuh
I figure it's safe to TBR jchafraix@ as a wtf owner since tsepez@ reviewed the ...
5 years, 2 months ago (2015-10-05 21:26:20 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1383153002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1383153002/190001
5 years, 2 months ago (2015-10-05 21:27:48 UTC) #33
JF
Post-jschuh-shoulder-surf-pair-program lgtm.
5 years, 2 months ago (2015-10-05 21:33:20 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:190001)
5 years, 2 months ago (2015-10-06 00:18:16 UTC) #35
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/794a0e84c6d07da73b687bda35cea145310d2c76 Cr-Commit-Position: refs/heads/master@{#352477}
5 years, 2 months ago (2015-10-06 00:19:47 UTC) #36
Julien - ping for review
Rubber stamp lgtm. Haraken is really a better reviewer for any PartitionAlloc change.
5 years, 2 months ago (2015-10-06 15:11:05 UTC) #38
haraken
LGTM with comments. https://codereview.chromium.org/1383153002/diff/190001/third_party/WebKit/Source/wtf/PageAllocator.cpp File third_party/WebKit/Source/wtf/PageAllocator.cpp (right): https://codereview.chromium.org/1383153002/diff/190001/third_party/WebKit/Source/wtf/PageAllocator.cpp#newcode124 third_party/WebKit/Source/wtf/PageAllocator.cpp:124: #if OS(POSIX) && CPU(32BIT) Is this ...
5 years, 2 months ago (2015-10-07 01:33:19 UTC) #39
Alexander Potapenko
5 years, 2 months ago (2015-10-08 12:07:31 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:190001) has been created in
https://codereview.chromium.org/1397513003/ by glider@chromium.org.

The reason for reverting is: This CL broke TSan bots, see
https://crbug.com/539863.

Powered by Google App Engine
This is Rietveld 408576698