Closed
Bug 1451169
Opened 7 years ago
Closed 6 years ago
Improve static atom handling in various places
Categories
(Core :: XPCOM, enhancement)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(8 files)
59 bytes,
text/x-review-board-request
|
davidb
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
davidb
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
davidb
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
baku
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
xidorn
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
erahm
:
review+
|
Details |
Now that bug 1449395 has landed, we can convert most of the remaining &nsGkAtoms::foo occurrences in nsTreeSanitizer to nsGkAtoms::foo, as described in bug 1449787 comment 1.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 17•7 years ago
|
||
mozreview-review |
Comment on attachment 8964760 [details]
Bug 1451169 - Use `nsStaticAtom*` instead of `nsStaticAtom**` in Element.h.
https://reviewboard.mozilla.org/r/233486/#review239084
Attachment #8964760 -
Flags: review?(amarchesini) → review+
Comment 18•7 years ago
|
||
mozreview-review |
Comment on attachment 8964761 [details]
Bug 1451169 - Reduce indirection for static atom pointers in nsCSSFrameConstructor.h.
https://reviewboard.mozilla.org/r/233488/#review239132
Attachment #8964761 -
Flags: review?(xidorn+moz) → review+
Comment 19•7 years ago
|
||
mozreview-review |
Comment on attachment 8964762 [details]
Bug 1451169 - Reduce indirection for FrameConstructionDataByTag::mTag.
https://reviewboard.mozilla.org/r/233490/#review239144
Attachment #8964762 -
Flags: review?(xidorn+moz) → review+
Comment 20•7 years ago
|
||
mozreview-review |
Comment on attachment 8964763 [details]
Bug 1451169 - Reduce indirection for PseudoParentData::mPseudoType.
https://reviewboard.mozilla.org/r/233492/#review239146
Attachment #8964763 -
Flags: review?(xidorn+moz) → review+
Comment 21•7 years ago
|
||
mozreview-review |
Comment on attachment 8964757 [details]
Bug 1451169 - Change nsRoleMapEntry::roleAtom from `nsStaticAtom**` to `nsStaticAtom* const`.
https://reviewboard.mozilla.org/r/233480/#review239286
Attachment #8964757 -
Flags: review?(dbolter) → review+
Comment 22•7 years ago
|
||
mozreview-review |
Comment on attachment 8964758 [details]
Bug 1451169 - Use `nsStaticAtom*` instead of `nsStaticAtom**` in nsAccessibilityService.h.
https://reviewboard.mozilla.org/r/233482/#review239288
Attachment #8964758 -
Flags: review?(dbolter) → review+
Comment 23•7 years ago
|
||
mozreview-review |
Comment on attachment 8964759 [details]
Bug 1451169 - Use `nsStaticAtom* const` instead of `nsStaticAtom**` in DocAccessible.cpp.
https://reviewboard.mozilla.org/r/233484/#review239290
Attachment #8964759 -
Flags: review?(dbolter) → review+
Comment 24•7 years ago
|
||
mozreview-review |
Comment on attachment 8964764 [details]
Bug 1451169 - Reduce indirection for static pointers in txCoreFunctionCall.cpp.
https://reviewboard.mozilla.org/r/233494/#review239348
r=me assuming this compiles. Just out of curiousity, does this have any benefits outside of cleaning up code? ie, are we avoiding relocations etc?
Attachment #8964764 -
Flags: review?(erahm) → review+
![]() |
Assignee | |
Comment 25•7 years ago
|
||
> Just out of curiousity, does this have any
> benefits outside of cleaning up code? ie, are we avoiding relocations etc?
This blocks bug 1449787, which will save us 21 KiB of static data, and also remove about 2,600 relocations (one per static atom).
![]() |
Assignee | |
Comment 26•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/914fb7cd9fc3aa757a3145fb9e3b34d813892837
Bug 1451169 - Change nsRoleMapEntry::roleAtom from `nsStaticAtom**` to `nsStaticAtom* const`. r=davidb
https://hg.mozilla.org/integration/mozilla-inbound/rev/6d36289e0f54548eb3305054a0d9c2e1a78a5eb0
Bug 1451169 - Use `nsStaticAtom*` instead of `nsStaticAtom**` in nsAccessibilityService.h. r=davidb
https://hg.mozilla.org/integration/mozilla-inbound/rev/c145fbd03947d521fc621484a8f4ea65ce58c90a
Bug 1451169 - Use `nsStaticAtom* const` instead of `nsStaticAtom**` in DocAccessible.cpp. r=davidb
https://hg.mozilla.org/integration/mozilla-inbound/rev/bb76a95897171110c6a6b3bc999ac66bc122efa5
Bug 1451169 - Use `nsStaticAtom*` instead of `nsStaticAtom**` in Element.h. r=baku
https://hg.mozilla.org/integration/mozilla-inbound/rev/4d51610ca08eeafddea2b5767a555a185a501332
Bug 1451169 - Reduce indirection for static atom pointers in nsCSSFrameConstructor.h. r=xidorn
https://hg.mozilla.org/integration/mozilla-inbound/rev/624d824287268ce93ae31a961d7d2182a9bdf4fc
Bug 1451169 - Reduce indirection for FrameConstructionDataByTag::mTag. r=xidorn
https://hg.mozilla.org/integration/mozilla-inbound/rev/348e825756fa69aeec071445ff4d4d664cdcbf84
Bug 1451169 - Reduce indirection for PseudoParentData::mPseudoType. r=xidorn
https://hg.mozilla.org/integration/mozilla-inbound/rev/b92f856e15a80efb562203ca00169c06fb1f4ae4
Bug 1451169 - Reduce indirection for static pointers in txCoreFunctionCall.cpp. r=erahm
Comment 27•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/914fb7cd9fc3
https://hg.mozilla.org/mozilla-central/rev/6d36289e0f54
https://hg.mozilla.org/mozilla-central/rev/c145fbd03947
https://hg.mozilla.org/mozilla-central/rev/bb76a9589717
https://hg.mozilla.org/mozilla-central/rev/4d51610ca08e
https://hg.mozilla.org/mozilla-central/rev/624d82428726
https://hg.mozilla.org/mozilla-central/rev/348e825756fa
https://hg.mozilla.org/mozilla-central/rev/b92f856e15a8
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Comment 28•7 years ago
|
||
Backout by aciure@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/d1db4d5030c8
Backed out 8 changesets on request from njn a=backout
Updated•7 years ago
|
Status: RESOLVED → REOPENED
status-firefox61:
fixed → ---
Resolution: FIXED → ---
Target Milestone: mozilla61 → ---
Comment 29•7 years ago
|
||
Backed out as requested https://bugzilla.mozilla.org/show_bug.cgi?id=1451744#c2
Flags: needinfo?(n.nethercote)
![]() |
Assignee | |
Comment 31•7 years ago
|
||
Bug 1449787 commit 2 explains the situation here.
Comment 32•7 years ago
|
||
Since it looks like a modified part of this change set landed in bug 1449395, what will become of this bug? Will you attempt to land a modified patch set? What priority is this fix (do you intend it to land in 61 or later?)
Flags: needinfo?(n.nethercote)
![]() |
Assignee | |
Comment 33•7 years ago
|
||
This bug's patches will land when bug 1449787's land. The timing of that depends on a bugfix to MSVC, which is unpredictable. It's extremely unlikely to be in 61.
Flags: needinfo?(n.nethercote)
Updated•7 years ago
|
Component: General → XPCOM
Comment 34•7 years ago
|
||
What's the status of this now that we use clang on windows?
Flags: needinfo?(n.nethercote)
![]() |
Assignee | |
Comment 35•7 years ago
|
||
I recently talked with ajones about clang on Windows: MSVC is still in tier 2 support, and might be required for Windows/ARM. So we can't knowingly break MSVC builds yet. Maybe in Firefox 65.
Flags: needinfo?(n.nethercote)
Comment 36•6 years ago
|
||
Pushed by nnethercote@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/835ff9bb6d3f
Change nsRoleMapEntry::roleAtom from `nsStaticAtom**` to `nsStaticAtom* const`. r=davidb
https://hg.mozilla.org/integration/mozilla-inbound/rev/443109b897b8
Use `nsStaticAtom*` instead of `nsStaticAtom**` in nsAccessibilityService.h. r=davidb
https://hg.mozilla.org/integration/mozilla-inbound/rev/cf96b05721a4
Use `nsStaticAtom* const` instead of `nsStaticAtom**` in DocAccessible.cpp. r=davidb
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b8bb97cf1d2
Use `nsStaticAtom*` instead of `nsStaticAtom**` in Element.h. r=baku
https://hg.mozilla.org/integration/mozilla-inbound/rev/972d5469e2b9
Reduce indirection for static atom pointers in nsCSSFrameConstructor.h. r=xidorn
https://hg.mozilla.org/integration/mozilla-inbound/rev/896cf4497b09
Reduce indirection for FrameConstructionDataByTag::mTag. r=xidorn
https://hg.mozilla.org/integration/mozilla-inbound/rev/876924556630
Reduce indirection for PseudoParentData::mPseudoType. r=xidorn
https://hg.mozilla.org/integration/mozilla-inbound/rev/78c157d088b4
Reduce indirection for static pointers in txCoreFunctionCall.cpp. r=erahm
![]() |
Assignee | |
Comment 37•6 years ago
|
||
The MSVC bug was fixed, and bug 1449787 is ready to land.
So these commits will increase the number of static constructors, but bug 1449787's commits will decrease them again.
Comment 38•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/835ff9bb6d3f
https://hg.mozilla.org/mozilla-central/rev/443109b897b8
https://hg.mozilla.org/mozilla-central/rev/cf96b05721a4
https://hg.mozilla.org/mozilla-central/rev/0b8bb97cf1d2
https://hg.mozilla.org/mozilla-central/rev/972d5469e2b9
https://hg.mozilla.org/mozilla-central/rev/896cf4497b09
https://hg.mozilla.org/mozilla-central/rev/876924556630
https://hg.mozilla.org/mozilla-central/rev/78c157d088b4
Status: REOPENED → RESOLVED
Closed: 7 years ago → 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•