Closed
Bug 1275999
Opened 9 years ago
Closed 9 years ago
Stop saving frame chains in xpconnect
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(5 files)
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
I believe nothing relies on this anymore once bug 1274915 lands.
Assignee | ||
Comment 1•9 years ago
|
||
Oh, I guess technically JS_IsRunning pays attention to this, but I think that's a bug.
Assignee | ||
Comment 2•9 years ago
|
||
This can all go away because no one is paying attention to the saved frame chain state anymore.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Assignee | ||
Comment 5•9 years ago
|
||
Assignee | ||
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Comment on attachment 8756989 [details] [diff] [review]
part 1. Stop saving frame chains in XPCJSContextStack::Push
Review of attachment 8756989 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/xpconnect/src/XPCJSContextStack.cpp
@@ -44,5 @@
>
> --idx; // Advance to new top of the stack
>
> XPCJSContextInfo& e = mStack[idx];
> - if (e.cx && e.savedFrameChain) {
Can you remove this boolean?
Attachment #8756989 -
Flags: review+
Comment 8•9 years ago
|
||
Comment on attachment 8756990 [details] [diff] [review]
part 2. Change XPCJSContextStack to just store JSContext*
Review of attachment 8756990 [details] [diff] [review]:
-----------------------------------------------------------------
Oh I see. ignore that comment.
Attachment #8756990 -
Flags: review+
Updated•9 years ago
|
Attachment #8756991 -
Flags: review+
Comment 9•9 years ago
|
||
Comment on attachment 8756992 [details] [diff] [review]
part 4. Change XPCJSContextStack::Pop to return void
Review of attachment 8756992 [details] [diff] [review]:
-----------------------------------------------------------------
Commit message should be push, not pop.
Attachment #8756992 -
Flags: review+
Updated•9 years ago
|
Attachment #8756993 -
Flags: review+
Assignee | ||
Comment 10•9 years ago
|
||
Try found a bug in part 2, yay Werror=unused-but-set-variable. js::Debug_SetActiveJSContext(mRuntime->Runtime(), nullptr) should be js::Debug_SetActiveJSContext(mRuntime->Runtime(), newTop) instead. Fixed locally.
Comment 11•9 years ago
|
||
Comment on attachment 8756990 [details] [diff] [review]
part 2. Change XPCJSContextStack to just store JSContext*
Review of attachment 8756990 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/xpconnect/src/xpcprivate.h
@@ +2772,5 @@
> };
>
>
> /***************************************************************************/
> // XPCJSContextStack is not actually an xpcom object, but xpcom calls are
Remove comment
Comment 12•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8c17c414e300
https://hg.mozilla.org/integration/mozilla-inbound/rev/ed57ef99f5e1
https://hg.mozilla.org/integration/mozilla-inbound/rev/1d9e42ddcd59
https://hg.mozilla.org/integration/mozilla-inbound/rev/8cab033c0e0b
https://hg.mozilla.org/integration/mozilla-inbound/rev/ce020eaf0e1e
Assignee | ||
Comment 13•9 years ago
|
||
> Remove comment
No, the comment was for the next class, not the helper class I removed.
Comment 14•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8c17c414e300
https://hg.mozilla.org/mozilla-central/rev/ed57ef99f5e1
https://hg.mozilla.org/mozilla-central/rev/1d9e42ddcd59
https://hg.mozilla.org/mozilla-central/rev/8cab033c0e0b
https://hg.mozilla.org/mozilla-central/rev/ce020eaf0e1e
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•