Changeset 269908 in webkit
- Timestamp:
- Nov 17, 2020, 9:28:09 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r269907 r269908 1 2020-11-17 Chris Dumez <cdumez@apple.com> 2 3 [iOS] Stop leaking an XPC transaction in our XPC services 4 https://bugs.webkit.org/show_bug.cgi?id=219036 5 6 Reviewed by Geoffrey Garen. 7 8 Stop leaking an XPC transaction in our XPC services on iOS. We were doing this to control the lifetime of our child services 9 ourselves. However, this is not needed on iOS because the UIProcess takes RunningBoard process assertions on behalf of its 10 child processes. 11 12 I have verified that our child processes do not exit/jetsam early. I have verified that our child processes are in the 13 correct jetsam band (IDLE/0 when background and FG/10 when foreground). I have also verified that the main thread of these 14 processes runs at UserInitiated QoS before and after this change. 15 16 * Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceEntryPoint.h: 17 (WebKit::XPCServiceInitializer): 18 * Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceEntryPoint.mm: 19 (WebKit::XPCServiceExit): 20 1 21 2020-11-17 Peng Liu <peng.liu6@apple.com> 2 22 -
trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceEntryPoint.h
r268605 r269908 92 92 93 93 // We don't want XPC to be in charge of whether the process should be terminated or not, 94 // so ensure that we have an outstanding transaction here. 94 // so ensure that we have an outstanding transaction here. This is not needed on iOS because 95 // the UIProcess takes process assertions on behalf of its child processes. 96 #if PLATFORM(MAC) 95 97 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 96 98 xpc_transaction_begin(); 97 99 ALLOW_DEPRECATED_DECLARATIONS_END 100 #endif 98 101 99 102 InitializeWebKit2(); -
trunk/Source/WebKit/Shared/EntryPointUtilities/Cocoa/XPCService/XPCServiceEntryPoint.mm
r269696 r269908 145 145 // Make sure to destroy the priority boost message to avoid leaking a transaction. 146 146 priorityBoostMessage = nullptr; 147 147 148 // Balances the xpc_transaction_begin() in XPCServiceInitializer. 149 #if PLATFORM(MAC) 148 150 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 149 151 xpc_transaction_end(); 150 152 ALLOW_DEPRECATED_DECLARATIONS_END 153 #endif 154 151 155 xpc_transaction_exit_clean(); 152 156 }
Note:
See TracChangeset
for help on using the changeset viewer.