Changeset 183569 in webkit


Ignore:
Timestamp:
Apr 29, 2015, 12:45:44 PM (10 years ago)
Author:
bshafiei@apple.com
Message:

Merged r183526. rdar://problem/20717863

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  
     12015-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
    1172015-04-28  Michael Catanzaro  <mcatanzaro@igalia.com>
    218
  • tags/Safari-601.1.31/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm

    r183319 r183569  
    9494            if ([NSThread isMainThread])
    9595                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            }
    98102        }
    99103    });
Note: See TracChangeset for help on using the changeset viewer.