Bug 27665

Summary: Failed assertion in WorkerContext::~WorkerContext()
Product: WebKit Reporter: Andrew Wilson <atwilson>
Component: WebCore JavaScriptAssignee: Andrew Wilson <atwilson>
Status: RESOLVED FIXED    
Severity: Normal CC: dimich, levin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Fix for flaky tests levin: review+

Andrew Wilson
Reported 2009-07-24 13:58:35 PDT
There's a race condition when WorkerContext shuts down, because the WorkerThread object can get freed before the WorkerContext constructor finishes executing. We need to update the code to make sure we don't access the m_thread after calling workerContextDestroyed() because the pointer may not be valid.
Attachments
Fix for flaky tests (2.03 KB, patch)
2009-07-24 14:21 PDT, Andrew Wilson
levin: review+
Andrew Wilson
Comment 1 2009-07-24 14:21:47 PDT
Created attachment 33472 [details] Fix for flaky tests Worker tests are slightly flaky after my earlier patch - this addresses that problem.
Dmitry Titov
Comment 2 2009-07-24 14:32:32 PDT
Note You need to log in before you can comment on or make changes to this bug.