Closed
Bug 1167395
Opened 9 years ago
Closed 9 years ago
Mark CharacterDataChangeInfo::Details as MOZ_STACK_CLASS, and mark mNextSibling as MOZ_NON_OWNING_REF
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
Details
Attachments
(1 file, 1 obsolete file)
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8609014 -
Flags: review?(jst)
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8609014 [details] [diff] [review] Change CharacterDataChangeInfo::mNextSibling to a smart pointer I took a look at this bug as I bounced it over to you. I think that there is a very good chance that it isn't correct, I can't remember if I actually traced through every user to make sure that there are no cycles, but the relationships through DXR don't look super easy to trace through. Tests did pass with the change though, so maybe it's OK? If you know how this is used, I can probably use that information to get a better idea of whether or not the change will introduce a memory leak.
Attachment #8609014 -
Flags: review?(jst) → feedback?(ehsan)
Comment 3•9 years ago
|
||
Comment on attachment 8609014 [details] [diff] [review] Change CharacterDataChangeInfo::mNextSibling to a smart pointer Review of attachment 8609014 [details] [diff] [review]: ----------------------------------------------------------------- I think Olli is a better reviewer for this.
Attachment #8609014 -
Flags: feedback?(ehsan) → feedback?(bugs)
Comment 4•9 years ago
|
||
CharacterDataChangeInfo::Details is a stack only struct (although it isn't marked as such), so I don't see any reason to slow down the current behavior. I would mark the variable MOZ_NON_OWNING_REF. Also, I checked the current usage, and it is definitely safe.
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8609014 -
Attachment is obsolete: true
Attachment #8609014 -
Flags: feedback?(bugs)
Attachment #8629530 -
Flags: review?(bugs)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → michael
Summary: Change CharacterDataChangeInfo::mNextSibling to a smart pointer → Mark CharacterDataChangeInfo::Details as MOZ_STACK_CLASS, and mark mNextSibling as MOZ_NON_OWNING_REF
Comment 6•9 years ago
|
||
Comment on attachment 8629530 [details] [diff] [review] Mark CharacterDataChangeInfo::Details as MOZ_STACK_CLASS, and mark mNextSibling as MOZ_NON_OWNING_REF Thanks
Attachment #8629530 -
Flags: review?(bugs) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/78d7bfaf3fc1
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•