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 external 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•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
Comment 3•6 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•6 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.
Comment 6•6 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•6 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•6 years ago
|
||
fixed the linking error in my 2nd patch.
Comment 10•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/83bb64e5b26d
https://hg.mozilla.org/mozilla-central/rev/dd0e24feda2d
Description
•