Closed Bug 1569213 Opened 6 years ago Closed 5 years ago

minor fixup to nsBaseHashtable's OrInsert's docs

Categories

(Core :: XPCOM, task)

task
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: Gankra, Unassigned)

References

Details

I ended up pushing an older patch for this in Bug 1547351.

Should have pushed up this patch: https://hg.mozilla.org/try/rev/66d96ea7466123dbbc307b9881257493075a6e33

Note the change from auto to auto& in the docs and nsTraceRefcnt.cpp. The latter I'm surprised isn't causing catastrophic issues for someone. Perhaps it's dead code?

Component: MFBT → XPCOM
See Also: → 1569682

(In reply to Alexis Beingessner [:Gankro] from comment #0)

Note the change from auto to auto& in the docs and nsTraceRefcnt.cpp. The latter I'm surprised isn't causing catastrophic issues for someone. Perhaps it's dead code?

I fixed this case in bug 1569682. Yes it was causing catastrophic issues, but only when a certain type of leak logging was enabled.

oof, sorry about letting this sit and waste your time! Unfortunate consequence of noticing this friday afternoon

editing to make this just about fixing the docs

Summary: minor fixup to nsBaseHashtable's OrInsert → minor fixup to nsBaseHashtable's OrInsert's docs

EntryPtr::OrInsert does no longer exist. There is a redesigned EntryHandle with a OrInsert method now, though. It has also revamped documentation. I am not sure what fixup you were suggesting originally. Maybe the issue has been addressed through the redesign?

Flags: needinfo?(a.beingessner)
Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(a.beingessner)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.