Bug 241660
Summary: | Make IPC::Attachment moveable on DARWIN | ||
---|---|---|---|
Product: | WebKit | Reporter: | Matt Woodrow <mattwoodrow> |
Component: | Platform | Assignee: | Matt Woodrow <mattwoodrow> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 238944 |
Matt Woodrow
This is the DARWIN-port specific piece of 238944.
Currently Attachment just holds a mach_port_t, and doesn't attempt to do any memory management or ownership transfer of the port.
This makes it very easy to leak. If we try to send an IPC message (and add the Attachment to m_attachments on Encoder), but fail to send the message, then we just leak the port.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/95253070>
Matt Woodrow
Pull request: https://github.com/WebKit/WebKit/pull/1563
EWS
Committed r295666 (251671@main): <https://commits.webkit.org/251671@main>
Reviewed commits have been landed. Closing PR #1563 and removing active labels.