Changeset 254604 in webkit
- Timestamp:
- Jan 15, 2020, 11:15:27 AM (7 years ago)
- Location:
- branches/safari-609-branch
- Files:
-
- 5 edited
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/UIProcess/mac/WebPreferencesMac.mm (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/ios/mainIOS.mm (modified) (1 diff)
-
Tools/WebKitTestRunner/mac/main.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-609-branch/Source/WebKit/ChangeLog
r254601 r254604 1 2020-01-14 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r254254. rdar://problem/58548978 4 5 WebKitTestRunner leaks objects in a top-level autoreleasePool that's never cleared 6 <https://webkit.org/b/205950> 7 <rdar://problem/50987831> 8 9 Reviewed by Joseph Pecoraro. 10 11 Source/WebKit: 12 13 * UIProcess/mac/WebPreferencesMac.mm: 14 (WebKit::WebPreferences::platformInitializeStore): 15 - Add an @autoreleasepool block around the contents of 16 this method since it generates numerous autoreleased 17 objects when run. 18 19 Tools: 20 21 * WebKitTestRunner/ios/mainIOS.mm: 22 (main): 23 - Add an @autoreleasepool block around a line of code 24 that generates autoreleased objects. These objects 25 would never be released for the life of the process 26 prior to this change. 27 * WebKitTestRunner/mac/main.mm: 28 (main): 29 - Move instantiation of WTR::TestController outside of 30 @autoreleasepool block so the pool can be drained 31 while running tests. Prior to this change, this 32 autoreleasePool would never be drained. 33 34 35 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254254 268f45cc-cd09-0410-ab3c-d52691b4dbfc 36 37 2020-01-09 David Kilzer <ddkilzer@apple.com> 38 39 WebKitTestRunner leaks objects in a top-level autoreleasePool that's never cleared 40 <https://webkit.org/b/205950> 41 <rdar://problem/50987831> 42 43 Reviewed by Joseph Pecoraro. 44 45 * UIProcess/mac/WebPreferencesMac.mm: 46 (WebKit::WebPreferences::platformInitializeStore): 47 - Add an @autoreleasepool block around the contents of 48 this method since it generates numerous autoreleased 49 objects when run. 50 1 51 2020-01-14 Alan Coon <alancoon@apple.com> 2 52 -
branches/safari-609-branch/Source/WebKit/UIProcess/mac/WebPreferencesMac.mm
r247043 r254604 139 139 void WebPreferences::platformInitializeStore() 140 140 { 141 @autoreleasepool { 141 142 #define INITIALIZE_DEBUG_PREFERENCE_FROM_NSUSERDEFAULTS(KeyUpper, KeyLower, TypeName, Type, DefaultValue, HumanReadableName, HumanReadableDescription) \ 142 setDebug##TypeName##ValueIfInUserDefaults(m_identifier, m_keyPrefix, m_globalDebugKeyPrefix, WebPreferencesKey::KeyLower##Key(), m_store);143 144 FOR_EACH_WEBKIT_DEBUG_PREFERENCE(INITIALIZE_DEBUG_PREFERENCE_FROM_NSUSERDEFAULTS)143 setDebug##TypeName##ValueIfInUserDefaults(m_identifier, m_keyPrefix, m_globalDebugKeyPrefix, WebPreferencesKey::KeyLower##Key(), m_store); 144 145 FOR_EACH_WEBKIT_DEBUG_PREFERENCE(INITIALIZE_DEBUG_PREFERENCE_FROM_NSUSERDEFAULTS) 145 146 146 147 #undef INITIALIZE_DEBUG_PREFERENCE_FROM_NSUSERDEFAULTS 147 148 148 if (!m_identifier)149 return;149 if (!m_identifier) 150 return; 150 151 151 152 #define INITIALIZE_PREFERENCE_FROM_NSUSERDEFAULTS(KeyUpper, KeyLower, TypeName, Type, DefaultValue, HumanReadableName, HumanReadableDescription) \ 152 Type user##KeyUpper##Value; \153 if (platformGet##TypeName##UserValueForKey(WebPreferencesKey::KeyLower##Key(), user##KeyUpper##Value)) \154 m_store.set##TypeName##ValueForKey(WebPreferencesKey::KeyLower##Key(), user##KeyUpper##Value);155 156 FOR_EACH_WEBKIT_PREFERENCE(INITIALIZE_PREFERENCE_FROM_NSUSERDEFAULTS)153 Type user##KeyUpper##Value; \ 154 if (platformGet##TypeName##UserValueForKey(WebPreferencesKey::KeyLower##Key(), user##KeyUpper##Value)) \ 155 m_store.set##TypeName##ValueForKey(WebPreferencesKey::KeyLower##Key(), user##KeyUpper##Value); 156 157 FOR_EACH_WEBKIT_PREFERENCE(INITIALIZE_PREFERENCE_FROM_NSUSERDEFAULTS) 157 158 158 159 #undef INITIALIZE_PREFERENCE_FROM_NSUSERDEFAULTS 160 } 159 161 } 160 162 -
branches/safari-609-branch/Tools/ChangeLog
r254581 r254604 1 2020-01-14 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r254254. rdar://problem/58548978 4 5 WebKitTestRunner leaks objects in a top-level autoreleasePool that's never cleared 6 <https://webkit.org/b/205950> 7 <rdar://problem/50987831> 8 9 Reviewed by Joseph Pecoraro. 10 11 Source/WebKit: 12 13 * UIProcess/mac/WebPreferencesMac.mm: 14 (WebKit::WebPreferences::platformInitializeStore): 15 - Add an @autoreleasepool block around the contents of 16 this method since it generates numerous autoreleased 17 objects when run. 18 19 Tools: 20 21 * WebKitTestRunner/ios/mainIOS.mm: 22 (main): 23 - Add an @autoreleasepool block around a line of code 24 that generates autoreleased objects. These objects 25 would never be released for the life of the process 26 prior to this change. 27 * WebKitTestRunner/mac/main.mm: 28 (main): 29 - Move instantiation of WTR::TestController outside of 30 @autoreleasepool block so the pool can be drained 31 while running tests. Prior to this change, this 32 autoreleasePool would never be drained. 33 34 35 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254254 268f45cc-cd09-0410-ab3c-d52691b4dbfc 36 37 2020-01-09 David Kilzer <ddkilzer@apple.com> 38 39 WebKitTestRunner leaks objects in a top-level autoreleasePool that's never cleared 40 <https://webkit.org/b/205950> 41 <rdar://problem/50987831> 42 43 Reviewed by Joseph Pecoraro. 44 45 * WebKitTestRunner/ios/mainIOS.mm: 46 (main): 47 - Add an @autoreleasepool block around a line of code 48 that generates autoreleased objects. These objects 49 would never be released for the life of the process 50 prior to this change. 51 * WebKitTestRunner/mac/main.mm: 52 (main): 53 - Move instantiation of WTR::TestController outside of 54 @autoreleasepool block so the pool can be drained 55 while running tests. Prior to this change, this 56 autoreleasePool would never be drained. 57 1 58 2020-01-14 Alan Coon <alancoon@apple.com> 2 59 -
branches/safari-609-branch/Tools/WebKitTestRunner/ios/mainIOS.mm
r244955 r254604 67 67 _argv = argv; 68 68 69 [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"WebKitLinkedOnOrAfterEverything"]; 69 @autoreleasepool { 70 [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"WebKitLinkedOnOrAfterEverything"]; 71 } 70 72 71 73 UIApplicationMain(argc, (char**)argv, @"WebKitTestRunnerApp", @"WebKitTestRunnerApp"); -
branches/safari-609-branch/Tools/WebKitTestRunner/mac/main.mm
r235837 r254604 65 65 setDefaultsToConsistentValuesForTesting(); 66 66 disableAppNapInUIProcess(); // For secondary processes, app nap is disabled using WKPreferencesSetPageVisibilityBasedProcessSuppressionEnabled(). 67 WTR::TestController controller(argc, argv);68 67 } 68 WTR::TestController controller(argc, argv); 69 69 return 0; 70 70 }
Note:
See TracChangeset
for help on using the changeset viewer.