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

Issue 2528053002: Account only main WinHeap in MemoryDumpProvider on Windows. (Closed)

Created:
4 years ago by kraynov
Modified:
4 years ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, vmpstr+watch_chromium.org, picksi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Account only main WinHeap in MemoryDumpProvider on Windows. Querying private heaps not owned by your code is racy and crashy task for WinAPI. See bug for more context. Heads for for perf sheriffs: --------------------------- This change will very likely decrease the malloc memory reported on Windows bots and is WAI, however, not a real improvement, sorry. BUG=665516 Committed: https://crrev.com/ad50729b102fa81b770559dbbd33109b7cb5d6f5 Cr-Commit-Position: refs/heads/master@{#434537}

Patch Set 1 #

Total comments: 1

Patch Set 2 : CHECK--; #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -86 lines) Patch
M base/trace_event/malloc_dump_provider.cc View 1 2 chunks +23 lines, -86 lines 1 comment Download

Messages

Total messages: 23 (16 generated)
kraynov
PTAL
4 years ago (2016-11-24 18:41:04 UTC) #4
Primiano Tucci (use gerrit)
great thanks. LGTM with 1 minor comment. Also please add something like this to the ...
4 years ago (2016-11-25 16:00:37 UTC) #7
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/2528053002/20001
4 years ago (2016-11-25 17:57:30 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-25 18:02:18 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/ad50729b102fa81b770559dbbd33109b7cb5d6f5 Cr-Commit-Position: refs/heads/master@{#434537}
4 years ago (2016-11-25 18:03:54 UTC) #20
Sigurður Ásgeirsson
https://codereview.chromium.org/2528053002/diff/20001/base/trace_event/malloc_dump_provider.cc File base/trace_event/malloc_dump_provider.cc (right): https://codereview.chromium.org/2528053002/diff/20001/base/trace_event/malloc_dump_provider.cc#newcode113 base/trace_event/malloc_dump_provider.cc:113: HANDLE main_heap = ::GetProcessHeap(); This relies on an implementation ...
4 years ago (2016-11-30 13:49:04 UTC) #22
kraynov
4 years ago (2016-11-30 14:14:03 UTC) #23
Message was sent while issue was closed.
Thanks siggi@
Essentially, it could happen that (heap supposed to be main in WinAPI's opinion)
!= (heap used by C runtime).
Refering to allocator shim
https://cs.chromium.org/chromium/src/base/allocator/winheap_stubs_win.cc it
seems to be proper solution pointing to the main heap.

Powered by Google App Engine
This is Rietveld 408576698