[webkit-changes] [WebKit/WebKit] 903140: REGRESSION (283076 at main): [ Sonoma wk2 x86_64 ] fa...

Chris Dumez noreply at github.com
Mon Sep 9 21:57:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 903140e7b64b98ee7e10d8c2ed4019cd42bb97a0
      https://github.com/WebKit/WebKit/commit/903140e7b64b98ee7e10d8c2ed4019cd42bb97a0
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-09-09 (Mon, 09 Sep 2024)

  Changed paths:
    M Source/WebKit/Platform/IPC/Encoder.cpp

  Log Message:
  -----------
  REGRESSION (283076 at main): [ Sonoma wk2 x86_64 ] fast/forms/input-implicit-length-limit.html is a constant timeout.
https://bugs.webkit.org/show_bug.cgi?id=279375
rdar://135569016

Reviewed by Per Arne Vollan and Darin Adler.

In 283076 at main, I replaced a call to memset() with a call to memsetSpan()
for extra safety. However, the size of the span I started passing didn't
actually match the `size` parameter we used to pass to memset().

As a result, we would keep resetting memory even if the buffer size had
not changed, which is common.

This caused fast/forms/input-implicit-length-limit.html to run 4x as slow
and it started to time out.

* Source/WebKit/Platform/IPC/Encoder.cpp:
(IPC::Encoder::grow):

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