Title: [277026] trunk/Source/WebKit
Revision
277026
Author
[email protected]
Date
2021-05-05 10:00:50 -0700 (Wed, 05 May 2021)

Log Message

REGRESSION (r276633): ASSERTION FAILED: !forbidMallocUseScopeCount || disableMallocRestrictionScopeCount
https://bugs.webkit.org/show_bug.cgi?id=225374
<rdar://problem/77533237>

Reviewed by Chris Dumez.

Disable memory allocation checks in speech recognition code path.
No change of behavior.

* WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.cpp:
(WebKit::SpeechRecognitionRealtimeMediaSourceManager::Source::storageChanged):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (277025 => 277026)


--- trunk/Source/WebKit/ChangeLog	2021-05-05 16:45:36 UTC (rev 277025)
+++ trunk/Source/WebKit/ChangeLog	2021-05-05 17:00:50 UTC (rev 277026)
@@ -1,3 +1,17 @@
+2021-05-05  Youenn Fablet  <[email protected]>
+
+        REGRESSION (r276633): ASSERTION FAILED: !forbidMallocUseScopeCount || disableMallocRestrictionScopeCount
+        https://bugs.webkit.org/show_bug.cgi?id=225374
+        <rdar://problem/77533237>
+
+        Reviewed by Chris Dumez.
+
+        Disable memory allocation checks in speech recognition code path.
+        No change of behavior.
+
+        * WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.cpp:
+        (WebKit::SpeechRecognitionRealtimeMediaSourceManager::Source::storageChanged):
+
 2021-05-05  Jean-Yves Avenard  <[email protected]>
 
         imported/w3c/web-platform-tests/media-source/mediasource-activesourcebuffers.html is a flakey

Modified: trunk/Source/WebKit/WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.cpp (277025 => 277026)


--- trunk/Source/WebKit/WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.cpp	2021-05-05 16:45:36 UTC (rev 277025)
+++ trunk/Source/WebKit/WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.cpp	2021-05-05 17:00:50 UTC (rev 277026)
@@ -109,6 +109,7 @@
     void audioSamplesAvailable(const MediaTime& time, const PlatformAudioData& audioData, const AudioStreamDescription& description, size_t numberOfFrames) final
     {
 #if PLATFORM(COCOA)
+        DisableMallocRestrictionsForCurrentThreadScope scope;
         if (m_description != description) {
             ASSERT(description.platformDescription().type == PlatformDescription::CAAudioStreamBasicType);
             m_description = *WTF::get<const AudioStreamBasicDescription*>(description.platformDescription().description);
@@ -132,6 +133,7 @@
 
     void storageChanged(SharedMemory* storage)
     {
+        DisableMallocRestrictionsForCurrentThreadScope scope;
         SharedMemory::Handle handle;
         if (storage)
             storage->createHandle(handle, SharedMemory::Protection::ReadOnly);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to