solana/runtime
Illia Bobyr 4353ac6797
Pass Arc<AtomicBool> by value, not by reference. (#31916)
`Arc` is already a reference internally, so it does not seem to be
beneficial to pass a reference to it.  Just adds an extra layer of
indirection.

Functions that need to be able to increment `Arc` reference count need
to take `Arc<AtomicBool>`, but those that just want to read the
`AtomicBool` value can accept `&AtomicBool`, making them a bit more
generic.

This change focuses specifically on `Arc<AtomicBool>`.  There are other
uses of `&Arc<T>` in the code base that could be converted in a similar
manner.  But it would make the change even larger.
2023-06-01 17:25:48 -07:00
..
benches Replace improper &Arc<...> with Arc<...> in Bank and Accounts (#31892) 2023-05-31 12:36:44 -05:00
src Pass Arc<AtomicBool> by value, not by reference. (#31916) 2023-06-01 17:25:48 -07:00
store-tool getter functions for StoredAccountMeta (#30447) 2023-02-27 10:03:22 -08:00
tests use max alive root to determine ancient cutoff for clean stats (#31545) 2023-05-10 08:05:31 -07:00
.gitignore
Cargo.toml Refactor - Renames loader-v3 to loader-v4. (#31570) 2023-05-11 08:29:06 +02:00
build.rs