Bug 208765

Summary: [GPUP] LayoutTest debug assertion crashes: InitDataRegistry::registerInitDataType() called mulitple times with same type
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: New BugsAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin, eric.carlson, peng.liu6, simon.fraser, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Jer Noble 2020-03-07 09:59:46 PST
[GPUP] LayoutTest debug assertion crashes: InitDataRegistry::registerInitDataType() called mulitple times with same type
Comment 1 Jer Noble 2020-03-07 10:01:58 PST
Created attachment 392863 [details]
Patch
Comment 2 Darin Adler 2020-03-07 12:41:42 PST
Comment on attachment 392863 [details]
Patch

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

> Source/WebCore/platform/graphics/avfoundation/CDMFairPlayStreaming.cpp:220
> +    static std::once_flag onceFlag;
> +    std::call_once(onceFlag, [] {

For any one code change, seems OK to use std::call_once to avoid calling multiple times, even when the code isn’t safe to use from multiple threads. But since std::call_once is the thread-safe, more-expensive way of doing it, it might be slight overkill. Not sure what our overall project strategy should be for such things.
Comment 3 WebKit Commit Bot 2020-03-07 20:38:27 PST
Comment on attachment 392863 [details]
Patch

Clearing flags on attachment: 392863

Committed r258099: <https://trac.webkit.org/changeset/258099>
Comment 4 WebKit Commit Bot 2020-03-07 20:38:29 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2020-03-07 20:39:19 PST
<rdar://problem/60195875>