HelperThreadTaskHandler should use UniquePtr for mOffThreadTask
Categories
(Core :: XPConnect, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
Details
Attachments
(2 files)
HelperThreadTaskHandler use the RunnableTask* passed by HelperThreadTaskCallback()
https://searchfox.org/mozilla-central/rev/a707541ff423ade0d81cef6488e6ecfa09273886/js/xpconnect/src/XPCJSThreadPool.h#27
The ownership of the RunableTask could be forwarded to XPCOM thread pool.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Pushed by allstars.chh@gmail.com: https://hg.mozilla.org/integration/autoland/rev/152d46945b27 HelperThreadTaskHandler should use UniquePtr for mOffThreadTask. r=KrisWright
Comment 3•5 years ago
|
||
Backed out changeset 152d46945b27 for causing bustages regarding UniquePtr.
Backout link: https://hg.mozilla.org/integration/autoland/rev/b760586ab7e62af195a44bbaa43b01be047c11db
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=296970003&repo=autoland&lineNumber=60499
Assignee | ||
Comment 4•5 years ago
|
||
lld-link: error: undefined symbol: void (__cdecl *js::HelperThreadTaskCallback)(class mozilla::UniquePtr<struct js::RunnableTask, struct JS::DeletePolicy<struct js::RunnableTask>>)
It looks like for windows,
The definition in JSRuntime.cpp
void (*HelperThreadTaskCallback)(UniquePtr<RunnableTask>);
the parameter UniquePtr, it uses mozilla::UniquePtr instead of js::UniquePtr, will add js:: to fix this.
Pushed by allstars.chh@gmail.com: https://hg.mozilla.org/integration/autoland/rev/ad3f58c996e5 HelperThreadTaskHandler should use UniquePtr for mOffThreadTask. r=KrisWright
Comment 6•5 years ago
|
||
Backed out for build bustages.
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=297151851&repo=autoland&lineNumber=59822
Backout: https://hg.mozilla.org/integration/autoland/rev/8e0175d2781728592b204b7e564fb18dfdcab40b
Assignee | ||
Comment 7•5 years ago
|
||
Filed Bug 1630189 for the weird linking error on windows pgo build and
use MOZ_NEVER_INLINE to prevent it.
Assignee | ||
Comment 8•5 years ago
|
||
fixed the linking error in my 2nd patch.
Pushed by allstars.chh@gmail.com: https://hg.mozilla.org/integration/autoland/rev/83bb64e5b26d HelperThreadTaskHandler should use UniquePtr for mOffThreadTask. r=KrisWright https://hg.mozilla.org/integration/autoland/rev/dd0e24feda2d Use MOZ_NEVER_INLINE to prevent linking error on windows pgo build. r=dmajor
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/83bb64e5b26d
https://hg.mozilla.org/mozilla-central/rev/dd0e24feda2d
Description
•