haikuwebkit/LayoutTests/webaudio/Panner
Chris Dumez 12df326450 Crash under FFTFrame::fftSetupForSize()
https://bugs.webkit.org/show_bug.cgi?id=220866
<rdar://73199504>

Reviewed by Eric Carlson.

Source/WebCore:

The crash was caused by FFTFrame::fftSetupForSize() but being called concurrently
from "HRTF database loader" threads. This patch makes FFTFrame::fftSetupForSize()
thread safe to address the issue.

Test: webaudio/Panner/PannerNode-crash.html

* platform/audio/mac/FFTFrameMac.cpp:
(WebCore::fftSetups):
(WebCore::FFTFrame::fftSetupForSize):

LayoutTests:

Add layout test coverage.

* webaudio/Panner/PannerNode-crash-expected.txt: Added.
* webaudio/Panner/PannerNode-crash.html: Added.


Canonical link: https://commits.webkit.org/233258@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-01-22 18:42:32 +00:00
..
PannerNode-crash-expected.txt Crash under FFTFrame::fftSetupForSize() 2021-01-22 18:42:32 +00:00
PannerNode-crash.html Crash under FFTFrame::fftSetupForSize() 2021-01-22 18:42:32 +00:00
hrtf-database-expected.txt
hrtf-database.html
panner-loop-expected.txt
panner-loop.html
panner-set-position-expected.txt
panner-set-position.html