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

Issue 2907563002: allocator/Windows: delete the old non-unified allocator-shim (Closed)

Created:
3 years, 7 months ago by Primiano Tucci (use gerrit)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, Dai Mikurube (NOT FULLTIME), feature-media-reviews_chromium.org, grt+watch_chromium.org, pennymac+watch_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

allocator/Windows: delete the old non-unified allocator-shim There are two "allocator shims" on windows. 1) The deprecated one in allocator_shim_win.cc 2) The current one ("unified shim") in allocator_shim_override_ucrt_symbols_win.h They work in the same exact way, that is, redefining ucrt symbols like malloc/realloc and routing them to winheap_stubs_win.cc. The only reason of the dual shim is purely historical: wfh@ was developing the VS2015 interposition-based shim while primiano@ was developing the unified shim on other platforms. Back then we consciously agreed to proceed in parallel as both changes were risky. Later, in crrev.com/2164653002 (54.0.2831.0) siggi@ made the work to port the unified shim to Windows and enabled the flag that made it default. Back then we decided to keep the old code around in case of reverts. The unified shim has been now been enabled by default for 9 months, it is time to cleanup 1. This CL, hence, has no functional changes (other than fixing #ifdefs in tests) and is just removing old code that has not been used in the last 9 months. BUG=550886 TBR=thakis Review-Url: https://codereview.chromium.org/2907563002 Cr-Commit-Position: refs/heads/master@{#475012} Committed: https://chromium.googlesource.com/chromium/src/+/3038b2f84f7244cda0fce882a108cb315af4b478

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix allocator_shim_define #

Total comments: 4

Patch Set 3 : remove EXPERIMENTAL_ #

Total comments: 4

Patch Set 4 : remove comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -206 lines) Patch
M base/BUILD.gn View 1 2 chunks +0 lines, -4 lines 0 comments Download
M base/allocator/BUILD.gn View 4 chunks +1 line, -39 lines 0 comments Download
M base/allocator/README.md View 1 chunk +2 lines, -2 lines 0 comments Download
M base/allocator/allocator_check.cc View 2 chunks +5 lines, -3 lines 0 comments Download
D base/allocator/allocator_shim_win.h View 1 chunk +0 lines, -17 lines 0 comments Download
D base/allocator/allocator_shim_win.cc View 1 chunk +0 lines, -123 lines 0 comments Download
M base/process/memory_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M base/security_unittest.cc View 1 2 2 chunks +4 lines, -8 lines 0 comments Download
M build/config/allocator.gni View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/installer/setup/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/memory_unittest.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M media/base/BUILD.gn View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/media.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 42 (23 generated)
Primiano Tucci (use gerrit)
Spring cleanup. If I did everything correctly this has no functional changes. As noted in ...
3 years, 7 months ago (2017-05-25 11:50:36 UTC) #6
Sigurður Ásgeirsson
Looks good, though doesn't yet compile :). It would make sense to fold the winheap_stubs ...
3 years, 7 months ago (2017-05-25 12:54:21 UTC) #11
Primiano Tucci (use gerrit)
Ehm I made some rebase mess while fixing the media stuff. This CL is based ...
3 years, 7 months ago (2017-05-25 13:01:16 UTC) #14
Primiano Tucci (use gerrit)
Okay now it's green, ptal
3 years, 7 months ago (2017-05-25 15:02:34 UTC) #15
Sigurður Ásgeirsson
lgtm
3 years, 7 months ago (2017-05-25 15:17:31 UTC) #16
Primiano Tucci (use gerrit)
+dalecurtis for 5 lines changes in media/base
3 years, 7 months ago (2017-05-25 15:25:32 UTC) #18
Primiano Tucci (use gerrit)
+gab for: 4 lines change in chrome/installer/setup/ 2 lines in base/process/memory_unittest.cc 8 lines in base/security_unittest.cc
3 years, 7 months ago (2017-05-25 15:27:29 UTC) #20
gab
r-s lgtm with question from someone that has no idea what's going on in the ...
3 years, 7 months ago (2017-05-25 16:48:48 UTC) #23
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2907563002/diff/40001/base/security_unittest.cc File base/security_unittest.cc (right): https://codereview.chromium.org/2907563002/diff/40001/base/security_unittest.cc#newcode51 base/security_unittest.cc:51: #if defined(OS_LINUX) && !defined(NO_TCMALLOC) && !defined(ADDRESS_SANITIZER) On 2017/05/25 16:48:48, ...
3 years, 7 months ago (2017-05-25 18:00:14 UTC) #24
gab
https://codereview.chromium.org/2907563002/diff/40001/base/security_unittest.cc File base/security_unittest.cc (right): https://codereview.chromium.org/2907563002/diff/40001/base/security_unittest.cc#newcode51 base/security_unittest.cc:51: #if defined(OS_LINUX) && !defined(NO_TCMALLOC) && !defined(ADDRESS_SANITIZER) On 2017/05/25 18:00:14, ...
3 years, 7 months ago (2017-05-25 18:13:20 UTC) #25
DaleCurtis
lgtm
3 years, 7 months ago (2017-05-25 18:37:35 UTC) #26
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2907563002/diff/40001/base/security_unittest.cc File base/security_unittest.cc (right): https://codereview.chromium.org/2907563002/diff/40001/base/security_unittest.cc#newcode51 base/security_unittest.cc:51: #if defined(OS_LINUX) && !defined(NO_TCMALLOC) && !defined(ADDRESS_SANITIZER) On 2017/05/25 18:13:20, ...
3 years, 7 months ago (2017-05-25 18:51:08 UTC) #27
Will Harris
Can the TODO in build/config/allocator.gni be removed now?
3 years, 7 months ago (2017-05-26 01:40:00 UTC) #28
Primiano Tucci (use gerrit)
On 2017/05/26 01:40:00, Will Harris (SYD) wrote: > Can the TODO in build/config/allocator.gni be removed ...
3 years, 7 months ago (2017-05-26 09:36:56 UTC) #29
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/2907563002/60001
3 years, 7 months ago (2017-05-26 09:37:39 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/448564)
3 years, 7 months ago (2017-05-26 09:45:11 UTC) #34
Primiano Tucci (use gerrit)
TBR thakis for removing 2 comment lines from build/config/allocator.gni
3 years, 7 months ago (2017-05-26 15:43:45 UTC) #37
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/2907563002/60001
3 years, 7 months ago (2017-05-26 15:44:17 UTC) #39
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 15:48:48 UTC) #42
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/3038b2f84f7244cda0fce882a108...

Powered by Google App Engine
This is Rietveld 408576698