Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 24ad492ba4204cf716e3834de4ecde0853f61ac3
https://github.com/WebKit/WebKit/commit/24ad492ba4204cf716e3834de4ecde0853f61ac3
Author: Chris Dumez <[email protected]>
Date: 2026-08-24 (Mon, 24 Aug 2026)
Changed paths:
M Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp
Log Message:
-----------
Release the jetsam boost assertion when disconnecting from an auxiliary
process
https://bugs.webkit.org/show_bug.cgi?id=322266
Reviewed by Per Arne Vollan.
Each auxiliary process costs its host application two RunningBoard assertions: a
throttler assertion, and "Jetsam Boost" (ProcessAssertionType::BoostedJetsam),
taken on macOS as soon as we connect to the process.
The two have very different lifetimes. AuxiliaryProcessProxy::shutDownProcess()
drops the throttler assertion via ProcessThrottler::didDisconnectFromProcess(),
so it is scoped to the connection. m_boostedJetsamAssertion was not cleared
there, so it was only released by ~ProcessAssertion when the last reference to
the proxy went away -- which can be arbitrarily later, since pages, the process
cache, suspended pages and pending completion handlers all keep the proxy alive
past the child's death.
Clear m_boostedJetsamAssertion from the same scope exit in shutDownProcess()
that already tears down the throttler assertion, so it runs on every exit path
including the State::Terminated early return.
* Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp:
(WebKit::AuxiliaryProcessProxy::shutDownProcess):
Canonical link: https://commits.webkit.org/319754@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications