Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 002b94dcc58e517cd72e919162fdd55982092e92
      
https://github.com/WebKit/WebKit/commit/002b94dcc58e517cd72e919162fdd55982092e92
  Author: Vassili Bykov <[email protected]>
  Date:   2025-07-18 (Fri, 18 Jul 2025)

  Changed paths:
    M Source/WTF/wtf/ConcurrentBuffer.h
    M Source/WTF/wtf/FastMalloc.h
    M Source/WTF/wtf/SegmentedVector.h

  Log Message:
  -----------
  Use std::unique_ptr instead of MallocPtr in ConcurrentBuffer and 
SegmentedVector
https://bugs.webkit.org/show_bug.cgi?id=296166
rdar://156121020

Reviewed by Keith Miller.

We are about to harden MallocPtr by requiring the parameter type to be trivially
destructible. That will prevent accidental memory leaks, when a type is used 
with
MallocPtr under the assumption it does not need a destructor call, but is later 
changed to
require non-trivial destruction (e.g. rdar://152574864).

So that MallocPtr can be hardened as intended, this patch changes two recently 
added
usages of MallocPtr to instead use std::unique_ptr with a deleter that disposes 
of the
pointer the same way MallocPtr would.

Canonical link: https://commits.webkit.org/297601@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