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

Issue 2552333002: Change the CRT initialization to create a new heap for Chrome.dll. (Closed)

Created:
4 years ago by Sigurður Ásgeirsson
Modified:
4 years ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, Dai Mikurube (NOT FULLTIME), vmpstr+watch_chromium.org, kraynov
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change the CRT initialization to create a new heap for Chrome.dll. Also change the malloc provider to iterate over the CRT's heap. BUG=671653 Committed: https://crrev.com/82535f6c4c3d582c7a60d941b8402a45c9e99e6b Cr-Commit-Position: refs/heads/master@{#436760}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add a test per Will's request. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -10 lines) Patch
M base/allocator/allocator_shim_override_ucrt_symbols_win.h View 1 chunk +24 lines, -0 lines 0 comments Download
M base/allocator/allocator_shim_unittest.cc View 1 3 chunks +10 lines, -1 line 0 comments Download
M base/trace_event/malloc_dump_provider.cc View 1 chunk +11 lines, -9 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
Sigurður Ásgeirsson
Will for the functionals of hooking the _acrt_ functions. Primiano for owners, pretty please?
4 years ago (2016-12-06 16:44:11 UTC) #7
Primiano Tucci (use gerrit)
I have no idea what acrt is and does, but the changes in base/trace_event/malloc_dump_provider.cc LGTM
4 years ago (2016-12-06 16:46:02 UTC) #8
Will Harris
seems okay to me... any chance of a test? e.g. heap should be different for ...
4 years ago (2016-12-06 19:46:35 UTC) #11
Sigurður Ásgeirsson
Thanks - added a test that the CRT heap is different from the process heap ...
4 years ago (2016-12-06 20:28:15 UTC) #12
Will Harris
https://codereview.chromium.org/2552333002/diff/1/base/allocator/allocator_shim_override_ucrt_symbols_win.h File base/allocator/allocator_shim_override_ucrt_symbols_win.h (right): https://codereview.chromium.org/2552333002/diff/1/base/allocator/allocator_shim_override_ucrt_symbols_win.h#newcode76 base/allocator/allocator_shim_override_ucrt_symbols_win.h:76: __acrt_heap = ::HeapCreate(0, 0, 0); On 2016/12/06 20:28:15, Sigurður ...
4 years ago (2016-12-06 21:33:09 UTC) #15
Sigurður Ásgeirsson
It's per process. Null goes in for heap handle. On Tue, Dec 6, 2016, 16:33 ...
4 years ago (2016-12-06 22:12:04 UTC) #18
Will Harris
lgtm then
4 years ago (2016-12-06 22:13:11 UTC) #19
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/2552333002/20001
4 years ago (2016-12-06 22:15:43 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-06 22:29:47 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-06 22:31:21 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/82535f6c4c3d582c7a60d941b8402a45c9e99e6b
Cr-Commit-Position: refs/heads/master@{#436760}

Powered by Google App Engine
This is Rietveld 408576698