Closed
Bug 937152
Opened 12 years ago
Closed 12 years ago
XPCWrappedJS::mMainThread and mMainThreadOnly are always true
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
|
5.07 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
Thanks to the work to make XPCWrappedJS only used on the main thread, mMainThread and mMainThreadOnly are always true. We can take advantage of that to simplify some code. I've been touching this code recently, and having this old gunk around is annoying.
Comment 1•12 years ago
|
||
I wrote some patches last year to remove all the threading goop, but got blocked on the XPCWrappedJS Stuff. I'm going to dupe this to the older bug - if you want to write those patches, by all means please do so. I promise speedy reviews. :-)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Comment 2•12 years ago
|
||
(unless you had something of more limited scope in mind, in which case feel free to re-open this and mark it as a dep of the other bug)
| Assignee | ||
Comment 3•12 years ago
|
||
Yes, this is just a limited thing. Better to incrementally improve the state than to wait on some uber patch. ;)
| Assignee | ||
Comment 4•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Attachment #830225 -
Flags: review?(bobbyholley+bmo)
| Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 830225 [details] [diff] [review]
remove the flags and simplify some code
Well, I should actually test this first...
The constructor for XPCWJS does an AddRef, so it must always be constructed on the main thread, so these flags are (I think) always going to be true. I guess technically something where root is null could have it be false.
I also replaced a few instances of NS_IsMainThread() with true in functions where we check and crash at the start of the function.
Attachment #830225 -
Flags: review?(bobbyholley+bmo)
| Assignee | ||
Comment 6•12 years ago
|
||
mMainThreadOnly may not evaluate to true, but under the assumption that the code I am removing is only executed on the main thread (which is enforced by the CRASH guards), then it will end up behaving the same either way. I should still test this...
| Assignee | ||
Updated•12 years ago
|
Status: REOPENED → ASSIGNED
| Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 830225 [details] [diff] [review]
remove the flags and simplify some code
This can at least run mochitests for 10 minutes, so it is probably okay.
Attachment #830225 -
Flags: review?(bobbyholley+bmo)
Updated•12 years ago
|
Attachment #830225 -
Flags: review?(bobbyholley+bmo) → review+
| Assignee | ||
Comment 8•12 years ago
|
||
l64 debug try run was green: https://tbpl.mozilla.org/?tree=Try&rev=8ab149fedc09
https://hg.mozilla.org/integration/mozilla-inbound/rev/5cb70c98cbb6
Comment 9•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Comment 10•12 years ago
|
||
status-b2g-v1.2:
--- → fixed
Comment 11•12 years ago
|
||
status-firefox-esr24:
--- → fixed
Updated•12 years ago
|
Comment 12•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Flags: in-testsuite? → in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•