Changeset 264489 in webkit
- Timestamp:
- Jul 16, 2020, 6:00:45 PM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/spi/darwin/XPCSPI.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/WebProcess/cocoa/WebProcessCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r264488 r264489 1 2020-07-16 Per Arne Vollan <pvollan@apple.com> 2 3 XPC connection should be suspended before setting target queue 4 https://bugs.webkit.org/show_bug.cgi?id=214427 5 6 Reviewed by Darin Adler. 7 8 Declare function to suspend XPC connection. 9 10 * wtf/spi/darwin/XPCSPI.h: 11 1 12 2020-07-16 Fujii Hironori <Hironori.Fujii@sony.com> 2 13 -
trunk/Source/WTF/wtf/spi/darwin/XPCSPI.h
r264128 r264489 128 128 pid_t xpc_connection_get_pid(xpc_connection_t); 129 129 void xpc_connection_resume(xpc_connection_t); 130 void xpc_connection_suspend(xpc_connection_t); 130 131 void xpc_connection_send_message(xpc_connection_t, xpc_object_t); 131 132 void xpc_connection_send_message_with_reply(xpc_connection_t, xpc_object_t, dispatch_queue_t, xpc_handler_t); -
trunk/Source/WebKit/ChangeLog
r264488 r264489 1 2020-07-16 Per Arne Vollan <pvollan@apple.com> 2 3 XPC connection should be suspended before setting target queue 4 https://bugs.webkit.org/show_bug.cgi?id=214427 5 6 Reviewed by Darin Adler. 7 8 According to system logs, an active XPC connection should be suspended before setting a new target queue. 9 10 No new tests, since there should be no behavior change introduced by this patch. 11 12 * WebProcess/cocoa/WebProcessCocoa.mm: 13 (WebKit::WebProcess::handleXPCEndpointMessages const): 14 1 15 2020-07-16 Fujii Hironori <Hironori.Fujii@sony.com> 2 16 -
trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
r264476 r264489 172 172 auto connection = parentProcessConnection()->xpcConnection(); 173 173 174 xpc_connection_suspend(connection); 175 174 176 xpc_connection_set_target_queue(connection, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)); 175 177 xpc_connection_set_event_handler(connection, ^(xpc_object_t event) { … … 187 189 } 188 190 }); 191 192 xpc_connection_resume(connection); 189 193 } 190 194
Note:
See TracChangeset
for help on using the changeset viewer.