Bug 218328 - Add some logging to SequenceCheckerImpl::IsCurrent
Summary: Add some logging to SequenceCheckerImpl::IsCurrent
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-29 03:44 PDT by youenn fablet
Modified: 2020-10-29 11:11 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.19 KB, patch)
2020-10-29 03:46 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2020-10-29 03:44:55 PDT
Add some logging to SequenceCheckerImpl::IsCurrent
Comment 1 youenn fablet 2020-10-29 03:46:00 PDT
Created attachment 412629 [details]
Patch
Comment 2 Eric Carlson 2020-10-29 10:34:21 PDT
Comment on attachment 412629 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=412629&action=review

> Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/synchronization/sequence_checker.cc:63
> +    if (valid_queue_ != current_queue)
> +      RTC_LOG(LS_ERROR) << "SequenceCheckerImpl queue check is failing";
>      return valid_queue_ == current_queue;
>    }
>    if (valid_system_queue_ && valid_system_queue_ == current_system_queue) {
> +    if (valid_queue_ != current_queue)
> +      RTC_LOG(LS_ERROR) << "SequenceCheckerImpl system queue check is failing";
>      return true;
>    }
> -  return rtc::IsThreadRefEqual(valid_thread_, current_thread);
> +  auto result = rtc::IsThreadRefEqual(valid_thread_, current_thread);
> +  if (!result)
> +    RTC_LOG(LS_ERROR) << "SequenceCheckerImpl thread check is failing";

Would it be helpful have unique log strings to help identify which check fails?
Comment 3 youenn fablet 2020-10-29 11:04:12 PDT
> Would it be helpful have unique log strings to help identify which check
> fails?

These strings are each different so we should know which one is failing.
Comment 4 EWS 2020-10-29 11:10:32 PDT
Committed r269156: <https://trac.webkit.org/changeset/269156>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 412629 [details].
Comment 5 Radar WebKit Bug Importer 2020-10-29 11:11:17 PDT
<rdar://problem/70817257>