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

Issue 9158012: Synchronize access to TestAutomationResourceMessageFilter's requests_ map. This fixes a race cond... (Closed)

Created:
8 years, 11 months ago by robertshield
Modified:
8 years, 11 months ago
Reviewers:
grt (UTC plus 2)
CC:
chromium-reviews, robertshield, cbentzel+watch_chromium.org, darin-cc_chromium.org, amit
Visibility:
Public.

Description

Synchronize access to TestAutomationResourceMessageFilter's requests_ map. This fixes a race condition in Chrome Frame's net tests that could cause URLRequestJobs to be created and destroyed on different threads. This in turn leaks PowerObservers from SystemMonitor's observer list, resulting in an observer list full of dangling pointers. In debug mode this may eventually dcheck if heap addresses are reused. BUG=109733 TEST=chrome_frame_net_tests.exe does not DCHECK. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117263

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -2 lines) Patch
M chrome_frame/test/net/test_automation_resource_message_filter.h View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome_frame/test/net/test_automation_resource_message_filter.cc View 1 2 4 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
robertshield
8 years, 11 months ago (2012-01-10 14:53:25 UTC) #1
grt (UTC plus 2)
LGTM following our discussion. please add a comment explaining that the last ref to a ...
8 years, 11 months ago (2012-01-10 19:56:44 UTC) #2
robertshield
Thanks! Detailed comment added for posterity. http://codereview.chromium.org/9158012/diff/1/chrome_frame/test/net/test_automation_resource_message_filter.cc File chrome_frame/test/net/test_automation_resource_message_filter.cc (right): http://codereview.chromium.org/9158012/diff/1/chrome_frame/test/net/test_automation_resource_message_filter.cc#newcode1 chrome_frame/test/net/test_automation_resource_message_filter.cc:1: // Copyright (c) ...
8 years, 11 months ago (2012-01-10 20:19:27 UTC) #3
grt (UTC plus 2)
LGTM++ w/ 1 nit http://codereview.chromium.org/9158012/diff/7002/chrome_frame/test/net/test_automation_resource_message_filter.cc File chrome_frame/test/net/test_automation_resource_message_filter.cc (right): http://codereview.chromium.org/9158012/diff/7002/chrome_frame/test/net/test_automation_resource_message_filter.cc#newcode46 chrome_frame/test/net/test_automation_resource_message_filter.cc:46: // URLRequestAutomationJob were created on, ...
8 years, 11 months ago (2012-01-10 20:38:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/9158012/9001
8 years, 11 months ago (2012-01-11 01:15:52 UTC) #5
commit-bot: I haz the power
Try job failure for 9158012-9001 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 11 months ago (2012-01-11 03:20:07 UTC) #6
commit-bot: I haz the power
8 years, 11 months ago (2012-01-11 18:24:06 UTC) #7

Powered by Google App Engine
This is Rietveld 408576698