Closed
Bug 1665373
Opened 5 years ago
Closed 5 years ago
Remove nsCountedRef
Categories
(Core :: XPCOM, task)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
People
(Reporter: emilio, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
It's just RefPtr
| Assignee | ||
Comment 1•5 years ago
|
||
Instead, use RefPtrTraits.
| Assignee | ||
Comment 2•5 years ago
|
||
This is just a minor optimization, not intended to change behavior.
Depends on D90397
| Assignee | ||
Comment 3•5 years ago
|
||
Instead, use NS_ReleaseOnMainThread. This requires exactly the same number of
special-cases, but let me know if you instead want a separate
MainThreadSurfaceRef which implements RefPtrTraits and releases on the main
thread or something...
Depends on D90398
| Assignee | ||
Comment 4•5 years ago
|
||
There was a weird mix of nsAutoRef and nsCountedRef going on... Use RefPtr<>
for ref-counted things, and UniquePtr for non-refcounted ones.
Depends on D90399
| Assignee | ||
Comment 5•5 years ago
|
||
It has no users after the previous patches.
Depends on D90400
| Assignee | ||
Updated•5 years ago
|
Keywords: leave-open
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/07558c195a1a
Bail earlier if getting a null ref to NS_ReleaseOnMainThread. r=sg
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7a0e32a556c4
Stop using nsCountedRef in the image container classes. r=aosmond
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0376d4ca2a02
Don't use nsAutoRef in fontconfig font list. r=jfkthame
Comment 9•5 years ago
|
||
| bugherder | ||
Comment 10•5 years ago
|
||
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8365c97a7534
Stop using nsCountedRef in widget/gtk. r=karlt
https://hg.mozilla.org/integration/autoland/rev/7cdb3eb59598
Remove nsCountedRef. r=xpcom-reviewers,nika
Comment 11•5 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•5 years ago
|
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Keywords: leave-open
You need to log in
before you can comment on or make changes to this bug.
Description
•