Changeset 183569 in webkit
- Timestamp:
- Apr 29, 2015, 12:45:44 PM (10 years ago)
- Location:
- tags/Safari-601.1.31/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/Safari-601.1.31/Source/JavaScriptCore/ChangeLog
r183516 r183569 1 2015-04-29 Babak Shafiei <bshafiei@apple.com> 2 3 Merge r183526. 4 5 2015-04-28 Joseph Pecoraro <pecoraro@apple.com> 6 7 Deadlock on applications using JSContext on non-main thread 8 https://bugs.webkit.org/show_bug.cgi?id=144370 9 10 Reviewed by Timothy Hatcher. 11 12 * inspector/remote/RemoteInspector.mm: 13 (Inspector::RemoteInspector::singleton): 14 Prevent a possible deadlock by assuming we can synchronously 15 run something on the main queue at this time. 16 1 17 2015-04-28 Michael Catanzaro <mcatanzaro@igalia.com> 2 18 -
tags/Safari-601.1.31/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm
r183319 r183569 94 94 if ([NSThread isMainThread]) 95 95 initialize(); 96 else 97 dispatch_sync(dispatch_get_main_queue(), initialize); 96 else { 97 // FIXME: This means that we may miss an auto-attach to a JSContext created on a non-main thread. 98 // The main thread initialization is required for certain WTF values that need to be initialized 99 // on the "real" main thread. We should investigate a better way to handle this. 100 dispatch_async(dispatch_get_main_queue(), initialize); 101 } 98 102 } 99 103 });
Note:
See TracChangeset
for help on using the changeset viewer.