fix: release mutex before dropping ancestors in wait_cloned (#21146)

This commit is contained in:
Matthias Seitz
2026-01-16 23:32:23 +01:00
committed by GitHub
parent f6dbf2d82d
commit 3a39251f79

View File

@@ -287,6 +287,11 @@ impl DeferredTrieData {
&inputs.ancestors,
);
*state = DeferredState::Ready(computed.clone());
// Release lock before inputs (and its ancestors) drop to avoid holding it
// while their potential last Arc refs drop (which could trigger recursive locking)
drop(state);
computed
}
}