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

Issue 868533003: Tidy up the allocator shim, which is now Windows only. (Closed)

Created:
5 years, 11 months ago by Will Harris
Modified:
5 years, 11 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews, wfh+watch_chromium.org, erikwright+watch_chromium.org, Dai Mikurube (NOT FULLTIME), DaleCurtis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Tidy up the allocator shim, which is now Windows only. Only re-implement the functions that we really need to re-implement to perform our additional checks. Let the CRT do the rest. Mark specifically which functions from which CRT files we are re-implementing. Add missing ones like _query_new_mode. Fold generic_allocators.cc into allocator_shim_win.cc as this code is now very Windows specific and no point being generic any more. This is a dependent CL to let ffmpegsumo start using the allocator shims, since it needs _aligned_realloc which the allocator shim never implemented. Instead, let the CRT do this for us, since it just calls our malloc(). BUG=434397, 450676, 446032, 444533 TEST=base_unittests --gtest_filter=SecurityTest.* TEST=allocator_unittests Committed: https://crrev.com/bc1bb9d28de48fe3dd339ed1948bbba9addc4bd9 Cr-Commit-Position: refs/heads/master@{#312720}

Patch Set 1 #

Total comments: 2

Patch Set 2 : nit. remove win_heap variable. #

Total comments: 1

Patch Set 3 : remove remaining win_heaps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -268 lines) Patch
M base/allocator/allocator.gyp View 1 chunk +0 lines, -6 lines 0 comments Download
M base/allocator/allocator_shim_win.cc View 1 2 6 chunks +123 lines, -88 lines 0 comments Download
D base/allocator/generic_allocators.cc View 1 chunk +0 lines, -172 lines 0 comments Download
M base/allocator/prep_libc.py View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Will Harris
5 years, 11 months ago (2015-01-22 04:16:12 UTC) #2
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/868533003/diff/1/base/allocator/allocator_shim_win.cc File base/allocator/allocator_shim_win.cc (right): https://codereview.chromium.org/868533003/diff/1/base/allocator/allocator_shim_win.cc#newcode33 base/allocator/allocator_shim_win.cc:33: HANDLE win_heap; kill win_heap https://codereview.chromium.org/868533003/diff/1/base/allocator/allocator_shim_win.cc#newcode222 base/allocator/allocator_shim_win.cc:222: // Overflow check ...
5 years, 11 months ago (2015-01-22 18:25:15 UTC) #3
DaleCurtis
Do the base/aligned_memory unittests pass after this?
5 years, 11 months ago (2015-01-22 18:28:33 UTC) #4
Will Harris
On 2015/01/22 18:28:33, DaleCurtis wrote: > Do the base/aligned_memory unittests pass after this? yes, on ...
5 years, 11 months ago (2015-01-22 20:00:02 UTC) #5
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/868533003/diff/20001/base/allocator/allocator_shim_win.cc File base/allocator/allocator_shim_win.cc (right): https://codereview.chromium.org/868533003/diff/20001/base/allocator/allocator_shim_win.cc#newcode33 base/allocator/allocator_shim_win.cc:33: HANDLE win_heap; : (
5 years, 11 months ago (2015-01-22 21:11:40 UTC) #6
Will Harris
On 2015/01/22 21:11:40, cpu wrote: > : ( turn that frown upside down and PTAL
5 years, 11 months ago (2015-01-22 21:14:31 UTC) #7
cpu_(ooo_6.6-7.5)
lgtm
5 years, 11 months ago (2015-01-22 21:15:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/868533003/40001
5 years, 11 months ago (2015-01-22 21:26:38 UTC) #10
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
5 years, 11 months ago (2015-01-22 23:29:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/868533003/40001
5 years, 11 months ago (2015-01-22 23:39:48 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-23 01:07:06 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 01:08:09 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bc1bb9d28de48fe3dd339ed1948bbba9addc4bd9
Cr-Commit-Position: refs/heads/master@{#312720}

Powered by Google App Engine
This is Rietveld 408576698