⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264489 in webkit


Ignore:
Timestamp:
Jul 16, 2020, 6:00:45 PM (6 years ago)
Author:
pvollan@apple.com
Message:

XPC connection should be suspended before setting target queue
​https://bugs.webkit.org/show_bug.cgi?id=214427

Reviewed by Darin Adler.

Source/WebKit:

According to system logs, an active XPC connection should be suspended before setting a new target queue.

No new tests, since there should be no behavior change introduced by this patch.

  • WebProcess/cocoa/WebProcessCocoa.mm:

(WebKit::WebProcess::handleXPCEndpointMessages const):

Source/WTF:

Declare function to suspend XPC connection.

  • wtf/spi/darwin/XPCSPI.h:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r264488 r264489  
     12020-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
    1122020-07-16  Fujii Hironori  <Hironori.Fujii@sony.com>
    213
  • trunk/Source/WTF/wtf/spi/darwin/XPCSPI.h

    r264128 r264489  
    128128pid_t xpc_connection_get_pid(xpc_connection_t);
    129129void xpc_connection_resume(xpc_connection_t);
     130void xpc_connection_suspend(xpc_connection_t);
    130131void xpc_connection_send_message(xpc_connection_t, xpc_object_t);
    131132void xpc_connection_send_message_with_reply(xpc_connection_t, xpc_object_t, dispatch_queue_t, xpc_handler_t);
  • trunk/Source/WebKit/ChangeLog

    r264488 r264489  
     12020-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
    1152020-07-16  Fujii Hironori  <Hironori.Fujii@sony.com>
    216
  • trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

    r264476 r264489  
    172172    auto connection = parentProcessConnection()->xpcConnection();
    173173
     174    xpc_connection_suspend(connection);
     175
    174176    xpc_connection_set_target_queue(connection, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0));
    175177    xpc_connection_set_event_handler(connection, ^(xpc_object_t event) {
    … …  
    187189        }
    188190    });
     191
     192    xpc_connection_resume(connection);
    189193}
    190194
Note: See TracChangeset for help on using the changeset viewer.