mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibGC: Only call finalize() on types that override finalize()
This dramatically cuts down on time spent in the GC's finalizer pass, since most types don't override finalize().
This commit is contained in:
committed by
Andreas Kling
parent
75ad452099
commit
2ac363dcba
Notes:
github-actions[bot]
2026-01-07 19:52:22 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/2ac363dcba7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7369
@@ -17,6 +17,8 @@ class IDBTransactionObserver final : public GC::Cell {
|
||||
GC_DECLARE_ALLOCATOR(IDBTransactionObserver);
|
||||
|
||||
public:
|
||||
static constexpr bool OVERRIDES_FINALIZE = true;
|
||||
|
||||
virtual ~IDBTransactionObserver();
|
||||
|
||||
[[nodiscard]] GC::Ptr<GC::Function<void()>> transaction_finished_observer() const { return m_transaction_finished_observer; }
|
||||
|
||||
Reference in New Issue
Block a user