[webkit-changes] [WebKit/WebKit] 4d11cf: [GLib] Arrange to call malloc_trim on process susp...

Adrian Perez noreply at github.com
Tue Apr 25 09:02:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4d11cf4168d7abf139506605c081b3aaaf33afbb
      https://github.com/WebKit/WebKit/commit/4d11cf4168d7abf139506605c081b3aaaf33afbb
  Author: Adrian Perez de Castro <aperez at igalia.com>
  Date:   2023-04-25 (Tue, 25 Apr 2023)

  Changed paths:
    M Source/WebKit/WebProcess/WebProcess.cpp
    M Source/WebKit/WebProcess/WebProcess.h
    M Source/WebKit/WebProcess/glib/WebProcessGLib.cpp

  Log Message:
  -----------
  [GLib] Arrange to call malloc_trim on process suspension
https://bugs.webkit.org/show_bug.cgi?id=255919

Reviewed by Carlos Garcia Campos.

* Source/WebKit/WebProcess/WebProcess.cpp:
(WebKit::WebProcess::nonVisibleProcessEarlyMemoryCleanupTimerFired):
Also call releaseSystemMallocMemory() for the WPE and GTK ports.
* Source/WebKit/WebProcess/WebProcess.h: Declare
releaseSystemMallocMemory() for the WPE and GTK ports.
* Source/WebKit/WebProcess/glib/WebProcessGLib.cpp:
(WebKit::WebProcess::releaseSystemMallocMemory): Call malloc_trim(0)
where the function is available.

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




More information about the webkit-changes mailing list