Closed
Bug 1250486
Opened 8 years ago
Closed 8 years ago
get rid of some static ctors for xpconnect things
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: tbsaunde, Assigned: tbsaunde)
Details
(Whiteboard: btpp-active)
Attachments
(3 files)
3.67 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
1.22 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
3.42 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8722480 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8722481 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 3•8 years ago
|
||
The dtor for PersistentRooted<> removes it from a linked list, which means we need a static ctor to register that dtor with the atexit machinary. So the easiest thing to do is make sScriptedInterruptCallback a pointer that points to a PersistentRootedValue we allocate on the heap.
Attachment #8722482 -
Flags: review?(bzbarsky)
Comment 4•8 years ago
|
||
Comment on attachment 8722480 [details] [diff] [review] make some xpconnect wrapper ctors constexpr to get rid of static constructors Review of attachment 8722480 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/xpconnect/wrappers/XrayWrapper.h @@ +159,5 @@ > > class DOMXrayTraits : public XrayTraits > { > public: > + MOZ_CONSTEXPR DOMXrayTraits() = default; Indentation is off
Comment 5•8 years ago
|
||
Comment on attachment 8722480 [details] [diff] [review] make some xpconnect wrapper ctors constexpr to get rid of static constructors >+ explicit MOZ_CONSTEXPR CrossOriginXrayWrapper(unsigned flags) : The other use in this file has "MOZ_CONSTEXPR explicit". Please match it, or if it's wrong fix it. >+ MOZ_CONSTEXPR DOMXrayTraits() = default; Indent by two more spaces. r=me
Attachment #8722480 -
Flags: review?(bzbarsky) → review+
Comment 6•8 years ago
|
||
Comment on attachment 8722481 [details] [diff] [review] make the ComponentsSH ctor constexpr Ick. Lying refcounting is ick. r=me, but ick. ;)
Attachment #8722481 -
Flags: review?(bzbarsky) → review+
Comment 7•8 years ago
|
||
Comment on attachment 8722482 [details] [diff] [review] get rid of the static ctor for XPCShellImpl.cpp r=me. Having this sort of thing as a static seems moderately insane, but ok for this case...
Attachment #8722482 -
Flags: review?(bzbarsky) → review+
Updated•8 years ago
|
Assignee: nobody → tbsaunde+mozbugs
Whiteboard: btpp-active
https://hg.mozilla.org/integration/mozilla-inbound/rev/8a0a84198d1c https://hg.mozilla.org/integration/mozilla-inbound/rev/228b1d50058a https://hg.mozilla.org/integration/mozilla-inbound/rev/324c6f120c8a
Comment 9•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8a0a84198d1c https://hg.mozilla.org/mozilla-central/rev/228b1d50058a https://hg.mozilla.org/mozilla-central/rev/324c6f120c8a
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•