Closed
Bug 1269963
Opened 8 years ago
Closed 8 years ago
Add a SyncRunnable::DispatchToThread() overload for AbstractThread
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla49
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(1 file)
(deleted),
text/x-review-board-request
|
bholley
:
review+
Sylvestre
:
approval-mozilla-beta+
|
Details |
As AbstractThread is also a citizen of xpcom, it deserves a place in SyncRunnable.
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/50381/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/50381/
Assignee | ||
Comment 2•8 years ago
|
||
Assignee: nobody → jwwang
Assignee | ||
Updated•8 years ago
|
Attachment #8748540 -
Flags: review?(bobbyholley)
Updated•8 years ago
|
Attachment #8748540 -
Flags: review?(bobbyholley) → review+
Comment 3•8 years ago
|
||
Comment on attachment 8748540 [details]
MozReview Request: Bug 1269963 - Add a SyncRunnable::DispatchToThread() overload for AbstractThread. r=bobbyholley.
https://reviewboard.mozilla.org/r/50381/#review47521
r=me with that fixed
::: xpcom/threads/AbstractThread.cpp:106
(Diff revision 1)
> AbstractThread::RequiresTailDispatch(AbstractThread* aThread) const
> {
> // We require tail dispatch if both the source and destination
> // threads support it.
> - return SupportsTailDispatch() && aThread->SupportsTailDispatch();
> + return SupportsTailDispatch() && aThread && aThread->SupportsTailDispatch();
> }
Instead of doing this, I would prefer to add a helper called:
RequiresTailDispatchFromCurrentThread()
{
AbstractThread* current = GetCurrent();
return current && RequiresTailDispatch(current);
}
And then MOZ_ASSERT(aThread) in RequiresTailDispatch.
We can also use this new helper from the other callers of RequiresTailDispatch.
Assignee | ||
Comment 4•8 years ago
|
||
Thanks for the review!
Comment 6•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Assignee | ||
Comment 7•8 years ago
|
||
Comment on attachment 8748540 [details]
MozReview Request: Bug 1269963 - Add a SyncRunnable::DispatchToThread() overload for AbstractThread. r=bobbyholley.
Approval Request Comment
[Feature/regressing bug #]:1269963
[User impact if declined]: Per bug 1274498 comment 4, we want to uplift bug 1270350 to beta (48) to see if crash can be reduced. This bug is the prerequisite of bug 1270350.
[Describe test coverage new/current, TreeHerder]: Tested on Central and TreeHerder.
[Risks and why]: Low. The change is simple and has been running on Central for weeks without any regression.
[String/UUID change made/needed]:none
Attachment #8748540 -
Flags: approval-mozilla-beta?
Updated•8 years ago
|
status-firefox48:
--- → affected
Comment 8•8 years ago
|
||
Comment on attachment 8748540 [details]
MozReview Request: Bug 1269963 - Add a SyncRunnable::DispatchToThread() overload for AbstractThread. r=bobbyholley.
taking it to fix the crash
should be in 48 beta 3
Attachment #8748540 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 9•8 years ago
|
||
bugherder uplift |
Updated•8 years ago
|
Whiteboard: [QDL][TDC-MVP][MEDIA]
Updated•8 years ago
|
Whiteboard: [QDL][TDC-MVP][MEDIA]
You need to log in
before you can comment on or make changes to this bug.
Description
•