summaryrefslogtreecommitdiff
path: root/crates/tor-memquota/src/mtracker
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-memquota/src/mtracker')
-rw-r--r--crates/tor-memquota/src/mtracker/reclaim.rs6
-rw-r--r--crates/tor-memquota/src/mtracker/reclaim/deferred_drop.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/tor-memquota/src/mtracker/reclaim.rs b/crates/tor-memquota/src/mtracker/reclaim.rs
index 12532a0e2..005b7d832 100644
--- a/crates/tor-memquota/src/mtracker/reclaim.rs
+++ b/crates/tor-memquota/src/mtracker/reclaim.rs
@@ -15,7 +15,7 @@ use deferred_drop::{DeferredDrop, GuardWithDeferredDrop};
/// On 64-bit systems, bigger than the refcounts, which are all `u32`
type NumParticips = usize;
-//========== candiate victim analysis ==========
+//========== candidate victim analysis ==========
/// The nominal data age of a participant
#[derive(Ord, PartialOrd, Eq, PartialEq)]
@@ -109,14 +109,14 @@ fn analyse_particip(precord: &PRecord, defer_drop: &mut DeferredDrop) -> PStatus
PStatus::NoData
}
-//========== reclamation algorith, the main pieces ==========
+//========== reclamation algorithm, the main pieces ==========
/// State while reclamation is active
struct Reclaiming {
/// The heap of candidates, oldest at top of heap
heap: BinaryHeap<Reverse<(Age, AId)>>,
- /// Make this type uninhbaited if memory tracking is compiled out
+ /// Make this type uninhabited if memory tracking is compiled out
enabled: EnabledToken,
}
diff --git a/crates/tor-memquota/src/mtracker/reclaim/deferred_drop.rs b/crates/tor-memquota/src/mtracker/reclaim/deferred_drop.rs
index 3b0742a82..02bd6611e 100644
--- a/crates/tor-memquota/src/mtracker/reclaim/deferred_drop.rs
+++ b/crates/tor-memquota/src/mtracker/reclaim/deferred_drop.rs
@@ -16,7 +16,7 @@
use super::*;
-/// `MutexGuard<State>` but also a list of `Arc<dyn Partcipant>` to drop when we unlock
+/// `MutexGuard<State>` but also a list of `Arc<dyn Participant>` to drop when we unlock
#[derive(Debug, Default)]
pub(super) struct GuardWithDeferredDrop<'m> {
/// The mutex guard