From 9302ec5e0e27984676a7598b1dc08d122d3e15db Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 8 Sep 2025 05:57:02 +0200 Subject: [PATCH] Add comment --- src/libstore/include/nix/store/local-store.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libstore/include/nix/store/local-store.hh b/src/libstore/include/nix/store/local-store.hh index 444d1b28f..1184be8ed 100644 --- a/src/libstore/include/nix/store/local-store.hh +++ b/src/libstore/include/nix/store/local-store.hh @@ -174,6 +174,10 @@ private: std::unique_ptr publicKeys; }; + /** + * Mutable state. It's behind a `ref` to reduce false sharing + * between immutable and mutable fields. + */ ref> _state; public: