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

Issue 2143693003: Start refactoring Windows allocator shim in prep for hooking in generic allocator shim on Windows. (Closed)

Created:
4 years, 5 months ago by Sigurður Ásgeirsson
Modified:
4 years, 5 months ago
CC:
chromium-reviews, wfh+watch_chromium.org, Dai Mikurube (NOT FULLTIME)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Start refactoring Windows allocator shim in prep for hooking in generic allocator shim on Windows. BUG=550886 Committed: https://crrev.com/25da2dbf685abbc6ee87f1bd527ddf93e298f3c4 Cr-Commit-Position: refs/heads/master@{#405984}

Patch Set 1 #

Patch Set 2 : Add missing build dependencies. #

Patch Set 3 : Clean up includes, add comments and a missing include guard. #

Patch Set 4 : Add back necessary includes. #

Total comments: 18

Patch Set 5 : Address comments. #

Total comments: 2

Patch Set 6 : Address Nico's comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -61 lines) Patch
M base/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/allocator/BUILD.gn View 2 chunks +6 lines, -1 line 0 comments Download
M base/allocator/allocator.gyp View 1 2 3 4 5 2 chunks +8 lines, -0 lines 1 comment Download
M base/allocator/allocator_shim_win.cc View 1 2 3 4 7 chunks +11 lines, -58 lines 0 comments Download
A base/allocator/winheap_stubs_win.h View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
A base/allocator/winheap_stubs_win.cc View 1 2 3 4 5 1 chunk +70 lines, -0 lines 0 comments Download
M base/base.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/process/memory_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (8 generated)
Sigurður Ásgeirsson
Hey Primiano, here's the refactoring CL you suggested in https://codereview.chromium.org/2138173002/. I like the feature flag, ...
4 years, 5 months ago (2016-07-13 14:09:37 UTC) #3
Primiano Tucci (use gerrit)
LGTM with minor comments. The only major comment is that GYP || condition, which seems ...
4 years, 5 months ago (2016-07-13 17:42:49 UTC) #4
Will Harris
logic looks good to me, this looks just like a refactor, but I'd like primiano's ...
4 years, 5 months ago (2016-07-13 18:06:01 UTC) #5
Will Harris
https://codereview.chromium.org/2143693003/diff/60001/base/allocator/winheap_stubs_win.cc File base/allocator/winheap_stubs_win.cc (right): https://codereview.chromium.org/2143693003/diff/60001/base/allocator/winheap_stubs_win.cc#newcode69 base/allocator/winheap_stubs_win.cc:69: bool WinCallNewHandler(size_t size) { this function might need to ...
4 years, 5 months ago (2016-07-13 18:10:38 UTC) #7
Sigurður Ásgeirsson
Thanks guys addressed comments - another look? https://codereview.chromium.org/2143693003/diff/60001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2143693003/diff/60001/base/BUILD.gn#newcode1988 base/BUILD.gn:1988: "//base/allocator:features", On ...
4 years, 5 months ago (2016-07-13 18:47:45 UTC) #9
Sigurður Ásgeirsson
Nico - gentle nudge. There's a couple of Qs regarding build config, plus owners if ...
4 years, 5 months ago (2016-07-14 19:09:36 UTC) #10
Nico
I had no idea you wanted me to look at this. Looking at the thread ...
4 years, 5 months ago (2016-07-14 19:11:41 UTC) #11
Primiano Tucci (use gerrit)
On 2016/07/13 17:42:49, Primiano Tucci wrote: > LGTM with minor comments. The only major comment ...
4 years, 5 months ago (2016-07-14 19:13:15 UTC) #12
Nico
lgtm https://codereview.chromium.org/2143693003/diff/80001/base/allocator/winheap_stubs_win.cc File base/allocator/winheap_stubs_win.cc (right): https://codereview.chromium.org/2143693003/diff/80001/base/allocator/winheap_stubs_win.cc#newcode66 base/allocator/winheap_stubs_win.cc:66: #error "Exceptions in allocator shim are not supported!" ...
4 years, 5 months ago (2016-07-14 19:13:33 UTC) #13
Nico
On Thu, Jul 14, 2016 at 3:13 PM, <primiano@chromium.org> wrote: > On 2016/07/13 17:42:49, Primiano ...
4 years, 5 months ago (2016-07-14 19:14:28 UTC) #14
Primiano Tucci (use gerrit)
Quoting fail, lemme try again: On 2016/07/14 19:11:41, Nico wrote: > I had no idea ...
4 years, 5 months ago (2016-07-14 19:14:35 UTC) #15
Nico
On Thu, Jul 14, 2016 at 3:14 PM, <primiano@chromium.org> wrote: > Quoting fail, lemme try ...
4 years, 5 months ago (2016-07-14 19:15:49 UTC) #16
Nico
Demo: http://imgur.com/dZuvfXt Please repeat the questions you wanted me to answer, probably easier than me ...
4 years, 5 months ago (2016-07-14 19:17:28 UTC) #17
Primiano Tucci (use gerrit)
On 2016/07/14 19:15:49, Nico wrote: > No, that's not in my gmail. The thread starts ...
4 years, 5 months ago (2016-07-14 19:19:26 UTC) #18
Will Harris
still lgtm from me but I'd like some assurance that you've tested (or changed) the ...
4 years, 5 months ago (2016-07-14 19:40:13 UTC) #19
Sigurður Ásgeirsson
Sorry, my bad. Figured something had borked as we're way outside your normal ETA :). ...
4 years, 5 months ago (2016-07-14 19:42:15 UTC) #20
Nico
I think that's cool. On Thu, Jul 14, 2016 at 3:42 PM, Sigurður Ásgeirsson <siggi@chromium.org> ...
4 years, 5 months ago (2016-07-14 19:46:42 UTC) #21
Primiano Tucci (use gerrit)
Ah also my other question was, in allocator.gyp ENABLE_WIN_ALLOCATOR_SHIM_TESTS=<(use_experimental_allocator_shim)||<(win_use_allocator_shim)', Not sure about that ||, but ...
4 years, 5 months ago (2016-07-14 20:06:01 UTC) #22
Nico
On 2016/07/14 20:06:01, Primiano Tucci wrote: > Ah also my other question was, in allocator.gyp ...
4 years, 5 months ago (2016-07-14 20:09:17 UTC) #23
Sigurður Ásgeirsson
Yup, that's what comes out the other end. So define another gyp variable is the ...
4 years, 5 months ago (2016-07-14 20:11:27 UTC) #24
Nico
I think you don't need another variable, you can do something like 'buildflag_flags': [ ...existing ...
4 years, 5 months ago (2016-07-14 20:30:39 UTC) #25
Primiano Tucci (use gerrit)
On Thu, Jul 14, 2016, 21:09 <thakis@chromium.org> wrote: > On 2016/07/14 20:06:01, Primiano Tucci wrote: ...
4 years, 5 months ago (2016-07-14 20:40:45 UTC) #26
Sigurður Ásgeirsson
Thanks, guys. I think I've tested this one as far as I can locally. https://codereview.chromium.org/2143693003/diff/80001/base/allocator/winheap_stubs_win.cc ...
4 years, 5 months ago (2016-07-18 13:42:04 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2143693003/100001
4 years, 5 months ago (2016-07-18 13:42:37 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-18 14:38:03 UTC) #32
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 14:39:49 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/25da2dbf685abbc6ee87f1bd527ddf93e298f3c4
Cr-Commit-Position: refs/heads/master@{#405984}

Powered by Google App Engine
This is Rietveld 408576698