Bug 208765 - [GPUP] LayoutTest debug assertion crashes: InitDataRegistry::registerInitDataType() called mulitple times with same type
Summary: [GPUP] LayoutTest debug assertion crashes: InitDataRegistry::registerInitData...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-03-07 09:59 PST by Jer Noble
Modified: 2020-03-07 20:39 PST (History)
7 users (show)

See Also:


Attachments
Patch (2.45 KB, patch)
2020-03-07 10:01 PST, Jer Noble
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>