Closed
Bug 1168167
Opened 9 years ago
Closed 9 years ago
Mark LazyIdleThread::mIdleObserver with MOZ_UNSAFE_REF
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
Details
Attachments
(1 file, 2 obsolete files)
1.07 KB,
patch
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8610196 -
Flags: review?(benjamin)
Comment 2•9 years ago
|
||
Comment on attachment 8610196 [details] [diff] [review] Mark LazyIdleThread::mIdleObserver with MOZ_UNSAFE_REF I can't figure out from the docs what MOZ_UNSAFE_REF does, so I don't think I can review this.
Attachment #8610196 -
Flags: review?(benjamin)
Assignee | ||
Updated•9 years ago
|
Attachment #8610196 -
Flags: review?(nfroyd)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → michael
Comment 3•9 years ago
|
||
Comment on attachment 8610196 [details] [diff] [review] Mark LazyIdleThread::mIdleObserver with MOZ_UNSAFE_REF Review of attachment 8610196 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the change below. ::: xpcom/threads/LazyIdleThread.h @@ +161,5 @@ > /** > * Idle observer. Called when the thread is about to be shut down. Released > * only when Shutdown() is called. > */ > + nsIObserver* MOZ_UNSAFE_REF("Caller must null if ptr becomes invalid") mIdleObserver; I think the better annotation here is something like: MOZ_UNSAFE_REF("See the documentation for SetWeakIdleObserver for lifetime information of this field") as there's no referent for "Caller" here.
Attachment #8610196 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 4•9 years ago
|
||
Update the commit message
Attachment #8610196 -
Attachment is obsolete: true
Comment 5•9 years ago
|
||
Or: MOZ_UNSAFE_REF("See the documentation for SetWeakIdleObserver for how the owner of LazyIdleThread should manage the lifetime information of this field")
Assignee | ||
Comment 6•9 years ago
|
||
Yeah - I think I like that one better. I'll update it again.
Assignee | ||
Comment 7•9 years ago
|
||
Updated message again
Attachment #8612850 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/871ac213933e
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•