Closed
Bug 1005475
Opened 11 years ago
Closed 11 years ago
Remove lock acquire from CacheEntry::IsFileDoomed()
Categories
(Core :: Networking: Cache, defect)
Core
Networking: Cache
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: mayhemer, Assigned: mayhemer)
References
Details
Attachments
(1 file, 2 obsolete files)
1.88 KB,
patch
|
michal
:
review+
|
Details | Diff | Splinter Review |
Michal, you didn't address my review request on this at https://bugzilla.mozilla.org/show_bug.cgi?id=913808#c26.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → honzab.moz
Status: NEW → ASSIGNED
Attachment #8416904 -
Flags: review?(michal.novotny)
Updated•11 years ago
|
Attachment #8416904 -
Flags: review?(michal.novotny) → review+
Assignee | ||
Comment 2•11 years ago
|
||
Regarding CacheFile::IsDoomed() - mHandle to my knowledge will never go away, right? CacheFileHandle::IsDoomed() reads an aligned bool, so it's thread-safe. I think that CacheFile::IsDoomed() doesn't need to lock as well.
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(michal.novotny)
Assignee | ||
Comment 3•11 years ago
|
||
Based on comment 2.
Attachment #8416913 -
Flags: review?(michal.novotny)
Assignee | ||
Comment 4•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=9dd5d47cb23d (try -a)
https://tbpl.mozilla.org/?tree=Try&rev=6f3980478258 (talos, compare to reference 5c379a4d7577)
Flags: needinfo?(michal.novotny)
Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 8416904 [details] [diff] [review]
v1
In case of a direct load (truncate or memory-only) mFile can be for a short time null after mFileStatus is set to NS_OK. Those assignments must happen in different order.
Attachment #8416904 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Attachment #8416913 -
Flags: review?(michal.novotny)
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8416922 -
Flags: review?(michal.novotny)
Assignee | ||
Updated•11 years ago
|
Attachment #8416904 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #8416913 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #8416922 -
Flags: review?(michal.novotny) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•