Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8dd8c2f4d29197f062e3ea29f75ade23c1e6ea7c
      
https://github.com/WebKit/WebKit/commit/8dd8c2f4d29197f062e3ea29f75ade23c1e6ea7c
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-03-07 (Sat, 07 Mar 2026)

  Changed paths:
    M Source/WTF/wtf/Deque.h
    M Tools/TestWebKitAPI/Tests/WTF/Deque.cpp

  Log Message:
  -----------
  Unreviewed, relanding 308841@main
https://bugs.webkit.org/show_bug.cgi?id=309425
rdar://171991681

Original Deque had a bug that it does not restore the inlined buffer.
This patch fixes it too.

Test: Tools/TestWebKitAPI/Tests/WTF/Deque.cpp

* Source/WTF/wtf/Deque.h:
(WTF::inlineCapacity>::checkValidity const):
(WTF::inlineCapacity>::Deque):
(WTF::inlineCapacity>::swap):
(WTF::inlineCapacity>::clear):
(WTF::inlineCapacity>::expandCapacityIfNeeded):
(WTF::inlineCapacity>::expandCapacity):
(WTF::inlineCapacity>::append):
(WTF::inlineCapacity>::prepend):
(WTF::inlineCapacity>::removeFirst):
(WTF::inlineCapacity>::removeLast):
(WTF::inlineCapacity>::remove):
(WTF::inlineCapacity>::increment):
(WTF::inlineCapacity>::decrement):
(WTF::inlineCapacity>::before const):
* Tools/TestWebKitAPI/Tests/WTF/Deque.cpp:
(TestWebKitAPI::TEST(WTF_Deque, WrapAroundAppendRemove)):
(TestWebKitAPI::TEST(WTF_Deque, WrapAroundExpansion)):
(TestWebKitAPI::TEST(WTF_Deque, InlineCapacityNonPowerOfTwo)):
(TestWebKitAPI::TEST(WTF_Deque, StressAppendPrepend)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to