[webkit-changes] [WebKit/WebKit] b0b96a: Fix data race found by TSan in AudioScheduledSourc...

Chris Dumez noreply at github.com
Wed Mar 15 09:17:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b0b96aa8e1b2fce0e445fb209902536ec08f1edc
      https://github.com/WebKit/WebKit/commit/b0b96aa8e1b2fce0e445fb209902536ec08f1edc
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.h

  Log Message:
  -----------
  Fix data race found by TSan in AudioScheduledSourceNode
https://bugs.webkit.org/show_bug.cgi?id=253898

Reviewed by Jer Noble.

AudioScheduledSourceNode::m_playbackState was accessed from several threads
without synchronization. Use std::atomic<> to address the issue.

* Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.h:

Canonical link: https://commits.webkit.org/261693@main




More information about the webkit-changes mailing list