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

Changeset 201521 in webkit


Ignore:
Timestamp:
May 31, 2016, 1:32:21 PM (10 years ago)
Author:
Chris Dumez
Message:

Regression(r201482): Crash under dispatch_semaphore_wait
https://bugs.webkit.org/show_bug.cgi?id=158230
<rdar://problem/26534698>

Reviewed by Eric Carlson.

Stop moving hasSessionSemaphore in the lambda capture since it is used in
dispatch_semaphore_wait() call after the callOnMainThread() call.

No new tests, already covered by tests that are crashing on the bots.

  • platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:

(-[WebAVStreamDataParserListener streamDataParser:didProvideContentKeyRequestInitializationData:forTrackID:]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r201518 r201521  
     12016-05-31  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression(r201482): Crash under dispatch_semaphore_wait
     4        https://bugs.webkit.org/show_bug.cgi?id=158230
     5        <rdar://problem/26534698>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Stop moving hasSessionSemaphore in the lambda capture since it is used in
     10        dispatch_semaphore_wait() call after the callOnMainThread() call.
     11
     12        No new tests, already covered by tests that are crashing on the bots.
     13
     14        * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
     15        (-[WebAVStreamDataParserListener streamDataParser:didProvideContentKeyRequestInitializationData:forTrackID:]):
     16
    1172016-05-31  Brady Eidson  <beidson@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm

    r201482 r201521  
    276276
    277277    OSObjectPtr<dispatch_semaphore_t> hasSessionSemaphore = adoptOSObject(dispatch_semaphore_create(0));
    278     callOnMainThread([protectedSelf = WTFMove(protectedSelf), protectedInitData = RetainPtr<NSData>(initData), trackID, hasSessionSemaphore = WTFMove(hasSessionSemaphore)] {
     278    callOnMainThread([protectedSelf = WTFMove(protectedSelf), protectedInitData = RetainPtr<NSData>(initData), trackID, hasSessionSemaphore] {
    279279        if (protectedSelf->_parent)
    280280            protectedSelf->_parent->didProvideContentKeyRequestInitializationDataForTrackID(protectedInitData.get(), trackID, hasSessionSemaphore);
Note: See TracChangeset for help on using the changeset viewer.