From 43e0ee6191e8f0b333b74783671a517ad4738a4d Mon Sep 17 00:00:00 2001 From: Eric Voskuil Date: Mon, 19 Oct 2026 20:59:31 -0400 Subject: [PATCH] Exclude the shared head from native residency steering. --- include/bitcoin/database/impl/memory/mmap_private.ipp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/bitcoin/database/impl/memory/mmap_private.ipp b/include/bitcoin/database/impl/memory/mmap_private.ipp index 1f3e7f2ae..70674dc4e 100644 --- a/include/bitcoin/database/impl/memory/mmap_private.ipp +++ b/include/bitcoin/database/impl/memory/mmap_private.ipp @@ -300,8 +300,9 @@ void CLASS::worker_start_() NOEXCEPT limit_ = system_memory() / throttle_factor; #else - // Only heads steer residency; bodies are the cache manager's to place. - if (staged_) + // Only managed heads steer residency; bodies and a shared head are the + // cache manager's to place. + if (staged_ || head_shared_) return; #endif