[webkit-changes] [WebKit/WebKit] 198b50: [GStreamer] Reduce use of WTF_ALLOW_UNSAFE_BUFFER_...
Philippe Normand
noreply at github.com
Wed Jan 15 04:44:55 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 198b50a5a3a8581bcfa48f619e7033d2cdc3dbad
https://github.com/WebKit/WebKit/commit/198b50a5a3a8581bcfa48f619e7033d2cdc3dbad
Author: Philippe Normand <philn at igalia.com>
Date: 2025-01-15 (Wed, 15 Jan 2025)
Changed paths:
M Source/WTF/wtf/MallocSpan.h
M Source/WebCore/platform/graphics/gstreamer/GstAllocatorFastMalloc.cpp
M Tools/Scripts/webkitpy/style/checker.py
Log Message:
-----------
[GStreamer] Reduce use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in FastMalloc allocator
https://bugs.webkit.org/show_bug.cgi?id=285528
Reviewed by Xabier Rodriguez-Calvar.
The allocator was updated to modern WebKit/GObject code style and now stores allocated data in a
span.
Co-authored-by: Alicia Boya Garcia <aboya at igalia.com>
* Source/WTF/wtf/MallocSpan.h:
(WTF::MallocSpan::tryAlignedMalloc):
* Source/WebCore/platform/graphics/gstreamer/GstAllocatorFastMalloc.cpp:
(gstMemoryFastMallocNew):
(gstAllocatorFastMallocAlloc):
(gstAllocatorFastMallocMemMap):
(gstAllocatorFastMallocMemUnmap):
(gstAllocatorFastMallocMemCopy):
(gstAllocatorFastMallocMemShare):
(gstAllocatorFastMallocMemIsSpan):
(gstAllocatorFastMallocConstructed):
(gst_allocator_fast_malloc_class_init):
(gst_allocator_fast_malloc_init): Deleted.
* Tools/Scripts/webkitpy/style/checker.py:
Canonical link: https://commits.webkit.org/288928@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list