Use the message router for all channels
Categories
(Core :: IPC, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
References
Details
Attachments
(6 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Build on top of the work in bug 1706374 to also use these multiplexed channels for other channels between processes such as PBackground.
Assignee | ||
Comment 1•4 years ago
|
||
This is used because, unlike in Mojo, we cannot get from the IPC::Message
object to its enclosing UserMessageEvent object to attach more ports to it, and
this extra parameter makes that easy to do.
Assignee | ||
Comment 2•4 years ago
|
||
These port attachments are stored directly on the IPC::Message until the
message is ready to be routed to another process, at which point they will be
attached to the port in WillBeRoutedExternally. When the message is then
received on the other side, the ports will be re-extracted from the
UserMessageEvent before it is discarded and re-added to the IPC::Message so
that serializers only need to interact directly with the IPC::Message type.
Assignee | ||
Comment 3•4 years ago
|
||
This adjusts how all actors created using Endpoint
behave so that they now
use ports instead of creating a unique native channel connection between each
pair of processes.
Assignee | ||
Comment 4•4 years ago
|
||
After the changes in part 3, this type is now dead code and can be fully
removed.
Assignee | ||
Comment 5•4 years ago
|
||
This removes the last form of unique link between two MessageChannels so that
all MessageChannels communicate using PortLink, as it is fairly straightforward
to use PortLink to communicate between two threads in-process.
Comment 7•4 years ago
•
|
||
Backed out for causing build bustages on MessageChannel.cpp.
Backout link: https://hg.mozilla.org/integration/autoland/rev/b900d99a2ae8f0902d0679b97ba311ec5f487fe7
Failure log: https://treeherder.mozilla.org/logviewer?job_id=343447057&repo=autoland&lineNumber=39808
Assignee | ||
Comment 8•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/40133c11821d
https://hg.mozilla.org/mozilla-central/rev/04abcc40b9ff
https://hg.mozilla.org/mozilla-central/rev/2a526c6c4d9d
https://hg.mozilla.org/mozilla-central/rev/c07634493a6f
https://hg.mozilla.org/mozilla-central/rev/b67473c8e44e
https://hg.mozilla.org/mozilla-central/rev/ad6887dc2abf
Description
•