Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 469e8d288d11f72a19c28830fd431ef07fcb0567
      
https://github.com/WebKit/WebKit/commit/469e8d288d11f72a19c28830fd431ef07fcb0567
  Author: Chris Dumez <[email protected]>
  Date:   2024-11-01 (Fri, 01 Nov 2024)

  Changed paths:
    M Source/JavaScriptCore/bytecode/ExpressionInfo.h
    M Source/JavaScriptCore/jit/JITCodeMap.h
    M Source/JavaScriptCore/runtime/VM.h
    M Source/WTF/wtf/MallocSpan.h
    M Source/WTF/wtf/Vector.h
    M Source/WTF/wtf/cocoa/VectorCocoa.h
    M Source/WTF/wtf/glib/GSpanExtras.cpp
    M Source/WTF/wtf/glib/GSpanExtras.h
    M Source/WTF/wtf/text/StringBuffer.h
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WTF/wtf/text/StringImpl.h
    M Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp
    M Source/WebKit/NetworkProcess/webrtc/NetworkRTCTCPSocketCocoa.mm
    M 
Source/WebKit/NetworkProcess/webtransport/cocoa/NetworkTransportSendStreamCocoa.mm
    M 
Source/WebKit/NetworkProcess/webtransport/cocoa/NetworkTransportSessionCocoa.mm
    M Source/WebKit/Platform/IPC/unix/ConnectionUnix.cpp
    M Source/WebKit/Shared/API/APIData.h
    M Source/WebKit/Shared/Daemon/DaemonUtilities.mm
    M Tools/TestWebKitAPI/NetworkConnection.h
    M Tools/TestWebKitAPI/NetworkConnection.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm

  Log Message:
  -----------
  Replace more use of MallocPtr with newer MallocSpan
https://bugs.webkit.org/show_bug.cgi?id=282392

Reviewed by Geoffrey Garen and Darin Adler.

Replace more use of MallocPtr with newer MallocSpan.

Also fix an issue when using MallocSpan<T> when sizeof(T)
is not 1. We were failing to multiply the size by sizeof(T)
before calling malloc functions.

* Source/JavaScriptCore/bytecode/ExpressionInfo.h:
* Source/JavaScriptCore/jit/JITCodeMap.h:
* Source/JavaScriptCore/runtime/VM.h:
* Source/WTF/wtf/Vector.h:
(WTF::VectorBufferBase::releaseBuffer):
(WTF::VectorBuffer::releaseBuffer):
(WTF::Malloc>::releaseBuffer):
* Source/WTF/wtf/cocoa/VectorCocoa.h:
(WTF::dispatchDataFromVector):
* Source/WTF/wtf/text/StringBuffer.h:
(WTF::StringBuffer::release):
* Source/WTF/wtf/text/StringImpl.h:
(WTF::StringImpl::StringImpl):
* Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp:
(WebCore::closeCurrentStream):
(WebCore::advanceCurrentStream):
* Source/WebKit/NetworkProcess/webrtc/NetworkRTCTCPSocketCocoa.mm:
(WebKit::NetworkRTCTCPSocketCocoa::sendTo):
(WebKit::dataFromVector): Deleted.
* 
Source/WebKit/NetworkProcess/webtransport/cocoa/NetworkTransportSendStreamCocoa.mm:
(WebKit::NetworkTransportSendStream::sendBytes):
* 
Source/WebKit/NetworkProcess/webtransport/cocoa/NetworkTransportSessionCocoa.mm:
(WebKit::NetworkTransportSession::sendDatagram):
* Source/WebKit/Shared/API/APIData.h:
(API::Data::createWithoutCopying):
(API::Data::create):
(API::Data::Data):
* Source/WebKit/Shared/Daemon/DaemonUtilities.mm:
(WebKit::vectorToXPCData):
* Tools/TestWebKitAPI/NetworkConnection.h:
* Tools/TestWebKitAPI/NetworkConnection.mm:
(TestWebKitAPI::Connection::awaitableSend):
(TestWebKitAPI::Connection::send const):
(TestWebKitAPI::Connection::sendAndReportError const):
(TestWebKitAPI::dataFromVector): Deleted.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/LoadAlternateHTMLString.mm:
(TEST(WebKit, LoadMoreThan4GB)):

Canonical link: https://commits.webkit.org/286028@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to