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

Issue 2592543002: Make memory-infra tests register / unregister with thread safety (Closed)

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

Description

Make memory-infra tests register / unregister with thread safety The DCHECK for correct thread at unregistration fires only when tracing is enabled. As a first step to make this check stricter, fix the tests to unregister on right thread. Move the DCHECK that tests for task runner for polling MDP to registration time. BUG=643438, 607533 Committed: https://crrev.com/cc4d7737106490e79b40e4bc946405f324c0d834 Cr-Commit-Position: refs/heads/master@{#440239}

Patch Set 1 : . #

Patch Set 2 : fix tests. #

Total comments: 2

Patch Set 3 : Just fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -30 lines) Patch
M base/trace_event/memory_dump_manager.cc View 1 2 3 chunks +6 lines, -5 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 18 chunks +24 lines, -22 lines 0 comments Download
M components/tracing/child/child_trace_message_filter_browsertest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/tracing/memory_tracing_browsertest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (24 generated)
ssid
I've always wanted to do this. This would increase the probability of catching races for ...
4 years ago (2016-12-20 00:53:46 UTC) #4
Primiano Tucci (use gerrit)
On 2016/12/20 00:53:46, ssid wrote: > I've always wanted to do this. This would increase ...
4 years ago (2016-12-21 11:44:06 UTC) #16
Primiano Tucci (use gerrit)
ah forgot a comment in the previous msg https://codereview.chromium.org/2592543002/diff/40001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (left): https://codereview.chromium.org/2592543002/diff/40001/base/trace_event/memory_dump_manager.cc#oldcode354 base/trace_event/memory_dump_manager.cc:354: DCHECK(take_mdp_ownership_and_delete_async) ...
4 years ago (2016-12-21 11:44:25 UTC) #17
ssid
Makes sense. I will write another CL with the blacklist for dcheck. Thanks https://codereview.chromium.org/2592543002/diff/40001/base/trace_event/memory_dump_manager.cc File ...
4 years ago (2016-12-21 19:55:03 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/2592543002/60001
4 years ago (2016-12-21 22:16:11 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years ago (2016-12-21 22:22:51 UTC) #29
commit-bot: I haz the power
4 years ago (2016-12-21 22:26:00 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cc4d7737106490e79b40e4bc946405f324c0d834
Cr-Commit-Position: refs/heads/master@{#440239}

Powered by Google App Engine
This is Rietveld 408576698