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

Issue 17143004: Revert 207278 "Make sure that the UI window created by base::Mes..." (Closed)

Created:
7 years, 6 months ago by kinuko
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Revert 207278 "Make sure that the UI window created by base::Mes..." Speculative revert: Suspected to break NavigationControllerTest.PurgeScreenshot. > Make sure that the UI window created by base::MessagePumpForUI is destoyed on the same thread (Windows). > > Currently the window created base::MessagePumpForUI can be destroyed on a wrong thread. base::MessagePumpForUI is a ref-counted class so it can (and does) outlive the owning base::MessageLoop. As the result DestroyWindow() can be called on a wrong thread. This makes TSAN unhappy and it reports races deep unside user32.dll. > > Changes in this CL: > - The message pump is now notified when the owning message loop is being destroyed. The notification is used to free all resources that hve to be released on the base::MessageLoop's thread. > - MessagePumpForUI::ScheduleWork() synchronizes access to the message-only window handle to avoid posting messages to the window during or after its destruction. > > BUG=241939 > > Review URL: https://chromiumcodereview.appspot.com/15709015 TBR=alexeypa@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207327

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -85 lines) Patch
M trunk/src/base/message_loop/message_loop.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M trunk/src/base/message_loop/message_pump.h View 1 chunk +0 lines, -6 lines 0 comments Download
M trunk/src/base/message_loop/message_pump_android.h View 1 chunk +0 lines, -1 line 0 comments Download
M trunk/src/base/message_loop/message_pump_android.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M trunk/src/base/message_loop/message_pump_default.h View 1 chunk +0 lines, -1 line 0 comments Download
M trunk/src/base/message_loop/message_pump_default.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M trunk/src/base/message_loop/message_pump_glib.h View 1 chunk +0 lines, -1 line 0 comments Download
M trunk/src/base/message_loop/message_pump_glib.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M trunk/src/base/message_loop/message_pump_libevent.h View 1 chunk +0 lines, -1 line 0 comments Download
M trunk/src/base/message_loop/message_pump_libevent.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M trunk/src/base/message_loop/message_pump_mac.h View 1 chunk +0 lines, -1 line 0 comments Download
M trunk/src/base/message_loop/message_pump_mac.mm View 1 chunk +0 lines, -3 lines 0 comments Download
M trunk/src/base/message_loop/message_pump_win.h View 5 chunks +4 lines, -10 lines 0 comments Download
M trunk/src/base/message_loop/message_pump_win.cc View 5 chunks +9 lines, -46 lines 0 comments Download
M trunk/src/tools/valgrind/tsan/suppressions.txt View 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kinuko
7 years, 6 months ago (2013-06-20 06:35:07 UTC) #1
kinuko
Committed patchset #1 manually as r207327.
7 years, 6 months ago (2013-06-20 06:35:29 UTC) #2
kinuko
On 2013/06/20 06:35:29, kinuko wrote: > Committed patchset #1 manually as r207327. PurgeScreenshot has started ...
7 years, 6 months ago (2013-06-20 06:37:13 UTC) #3
alexeypa (please no reviews)
On 2013/06/20 06:35:29, kinuko wrote: > Committed patchset #1 manually as r207327. Could you please ...
7 years, 6 months ago (2013-06-20 06:37:41 UTC) #4
kinuko
On 2013/06/20 06:37:41, alexeypa wrote: > On 2013/06/20 06:35:29, kinuko wrote: > > Committed patchset ...
7 years, 6 months ago (2013-06-20 06:54:25 UTC) #5
kinuko
On 2013/06/20 06:54:25, kinuko wrote: > On 2013/06/20 06:37:41, alexeypa wrote: > > On 2013/06/20 ...
7 years, 6 months ago (2013-06-20 09:37:56 UTC) #6
alexeypa (please no reviews)
7 years, 6 months ago (2013-06-20 16:34:15 UTC) #7
Message was sent while issue was closed.
On 2013/06/20 09:37:56, kinuko wrote:
> It looks the revert has fixed the test on both Win7 bots.

Thanks for looking into this! I'll investigate.

Powered by Google App Engine
This is Rietveld 408576698