From 9bc2592da1713faac982233f054ab311a531e4fc Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Mon, 10 Jan 2022 10:47:08 -0600 Subject: [PATCH] Use lazy_rent_collection directly (#22410) --- runtime/src/bank.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 52e71a2589..10863c6bfa 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -4345,7 +4345,7 @@ impl Bank { } fn collect_rent_eagerly(&self) { - if !self.enable_eager_rent_collection() { + if self.lazy_rent_collection.load(Relaxed) { return; } @@ -4370,14 +4370,6 @@ impl Bank { self.lazy_rent_collection.store(true, Relaxed); } - fn enable_eager_rent_collection(&self) -> bool { - if self.lazy_rent_collection.load(Relaxed) { - return false; - } - - true - } - fn rent_collection_partitions(&self) -> Vec { if !self.use_fixed_collection_cycle() { // This mode is for production/development/testing.