RESOLVED FIXED 257580
Make MachSendRight move-only
https://bugs.webkit.org/show_bug.cgi?id=257580
Summary Make MachSendRight move-only
Matt Woodrow
Reported 2023-05-31 19:13:34 PDT
MachSendRight are expensive to copy, since it calls into the kernel. We generally don't want to do that by accident. We should make MachSendRight move-only, and switch callers to use the existing 'copySendRight' function where they do want a duplicate.
Attachments
Kimmo Kinnunen
Comment 1 2023-05-31 23:21:30 PDT
This extends to all the handle types that should unify their interface: UnixFileDescriptor Win32Handle MachSendRight If the copy constructor should be removed, the interface should be the same for all so that generic code can be written. E.g. ...::copy() or ...::duplicate()
Radar WebKit Bug Importer
Comment 2 2023-06-07 17:29:28 PDT
Matt Woodrow
Comment 3 2023-06-07 17:32:39 PDT
Kimmo Kinnunen
Comment 4 2023-06-27 23:45:09 PDT
maybe bug 258608 needs to be addressed before landing the patch
EWS
Comment 5 2023-07-26 13:52:35 PDT
Committed 266327@main (aeb697fb2c06): <https://commits.webkit.org/266327@main> Reviewed commits have been landed. Closing PR #14771 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.