Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2031dd94bcbea5f9b3324bcfcf09f5e5771b49fd
      
https://github.com/WebKit/WebKit/commit/2031dd94bcbea5f9b3324bcfcf09f5e5771b49fd
  Author: Justin Michaud <[email protected]>
  Date:   2025-07-28 (Mon, 28 Jul 2025)

  Changed paths:
    A JSTests/stress/weakblock-trigger-gc.js
    M Source/JavaScriptCore/heap/Heap.h
    M Source/JavaScriptCore/heap/WeakSetInlines.h
    M Source/JavaScriptCore/tools/JSDollarVM.cpp

  Log Message:
  -----------
  WeakSet should count its heap allocations
https://bugs.webkit.org/show_bug.cgi?id=295072

Reviewed by Yusuke Suzuki.

Long running pages that do not allocate, but have a RAF callback
can see their memory usage slowly increase forever. This is caused
by WeakBlock allocations. Without other kinds of allocations,
the collector thinks that the footprint isn't growing.

We notify the collector about these allocations now. Notably, it is
very important that we do not GC while allocating a Weak<T>, because
we construct them all over the place in the middle of inserting
into WeakMap. `didAllocate` does not trigger GC on its own, so this
patch does not change this behaviour.

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