Closed
Bug 59247
Opened 25 years ago
Closed 25 years ago
nsIDirectoryServiceProvider's need to be threadsafe
Categories
(Core Graveyard :: Profile: Migration, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: jud, Assigned: ccarlen)
Details
Attachments
(1 file)
|
728 bytes,
patch
|
Details | Diff | Splinter Review |
The profile migration thread is using nsIDirectoryServiceProvider which is not
threadsafe.
| Assignee | ||
Comment 1•25 years ago
|
||
Two providers that need to be threadsafe are:
1) The one at mozilla/modules/appfilelocprovider. This one looks to be already.
2) The one implemented by profile manager. Profile mgr uses the threadsafe
nsISupports macros - whether it actually is threadsafe ??
3) The one at mozilla/modules/mpfilelocprovider. This one also is probably
threadsafe already.
Comment 2•25 years ago
|
||
Conrad, are you the new directory service owner? :-)
Assignee: dougt → ccarlen
| Assignee | ||
Updated•25 years ago
|
Target Milestone: --- → mozilla0.9
| Assignee | ||
Comment 4•25 years ago
|
||
-> 0.9.1. Actually, they are threadsafe - they just don't use the nsISupports
macros which say they are.
Target Milestone: mozilla0.9 → mozilla0.9.1
| Assignee | ||
Comment 5•25 years ago
|
||
| Assignee | ||
Comment 6•25 years ago
|
||
Using NS_IMPL_THREADSAFE_ISUPPORTS1 avoids the assertion which can happen while
migrating profiles. The object is threadsafe and the only code that it calls
also claims to be threadsafe.
CC'ing dougt for review.
| Reporter | ||
Comment 7•25 years ago
|
||
r=valeski. wow! a real threadsafe class using the thread-safe macros, what a
concept :-).
| Assignee | ||
Comment 8•25 years ago
|
||
CC'ing jband for sr.
Comment 9•25 years ago
|
||
sr=jband. Looks safe to me.
| Assignee | ||
Comment 10•25 years ago
|
||
Fix checked in. You'll no longer get the assertion when migrating profiles.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•