Closed
Bug 1445113
Opened 6 years ago
Closed 6 years ago
Remove duplicate static atoms
Categories
(Core :: XPCOM, enhancement)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(1 file)
There are 148 static atoms that are duplicated, i.e. we end up with multiple handles to the same unique static. For example nsGkAtoms::set and nsGkAtoms::set_, or nsGkAtoms::abbr and nsHTMLTags::sTagAtomTable[eHTML_abbr]. This affects how static atoms are represented: it requires a level of indirection, so that two handles can point to the same actual atom. Eventually I want to avoid this indirection and just refer to static atoms directly with static addresses -- e.g. nsGkAtom::set is the actual atom, rather than a pointer to the atom, and we can just use &nsGkAtom::set directly. But that won't work if there are duplicates like &nsGkAtom::set_, because it would break atom pointer equality. So I want to remove all the duplicates.
Comment hidden (mozreview-request) |
Comment 2•6 years ago
|
||
mozreview-review |
Comment on attachment 8963291 [details] Bug 1445113 - Disallow duplicate static atoms. https://reviewboard.mozilla.org/r/232196/#review237696 \o/
Attachment #8963291 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 3•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c1f212076daf6ac0d55a7e7f2c8d1ffc7001f9ac Bug 1445113 - Disallow duplicate static atoms. r=froydnj
Comment 4•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c1f212076daf
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•