Bug 77003

Summary: Make publicURLManagerMap thread safe
Product: WebKit Reporter: Kaustubh Atrawalkar <kaustubh.ra>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: abarth, arv, dslomov, kaustubh.ra, levin, levin+threading, ojan, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch levin: review-

Description Kaustubh Atrawalkar 2012-01-25 03:41:28 PST
With reference to bug - https://bugs.webkit.org/show_bug.cgi?id=74386 there are few missing fixes needed to be done. They are as follows -

1. Replace back removed "NoStaticTables" from DOMURL.idl. needed to allow this to be used with workers.
2. The methods publicURLManagerMap and publicURLManager aren't threadsafe so they has potential race conditions since it can be called on Web Worker threads as well as the main thread. Make them thread-safe.
Comment 1 Kaustubh Atrawalkar 2012-01-25 03:45:10 PST
Created attachment 123915 [details]
Patch

Added AtomicallyInitializedStatic to make publicURLmanager thread safe.
Replaced NoStaticTables.
Comment 2 David Levin 2012-01-25 10:07:54 PST
Comment on attachment 123915 [details]
Patch

Per https://bugs.webkit.org/show_bug.cgi?id=74386#c34
Comment 3 Kaustubh Atrawalkar 2012-02-07 00:55:57 PST
This issue is collected in https://bugs.webkit.org/show_bug.cgi?id=74386 by rolling out the patch and fixing the patch itself.