aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-memquota/src/mtracker/reclaim.rs
Commit message (Collapse)AuthorAgeFilesLines
* Include "bug" in all bug error messagesNick Mathewson2025-04-281-1/+1
|
* Convert a few crates to slotmap-carefulNeel Chauhan2024-10-171-1/+1
|
* Upgrade to derive_more version 1.0.0Nick Mathewson2024-09-251-2/+2
| | | | | | The `derive_more` crate broke backward compatibility with this version, so this change involved quite a few manual fixups. With luck, they'll keep compatibility for some while in the future.
* tor-memquota: Avoid a perhaps-impossible division-by-zero (fmt)Ian Jackson2024-09-101-1/+5
|
* tor-memquota: Avoid a perhaps-impossible division-by-zeroIan Jackson2024-09-101-1/+3
| | | | | | It is not locally obvious that n_particips can't be zero, here. Certainly if it *is* that would be state corruption, but I don't think I can quite rule it out in the presence of a bug somewhere else.
* Fix typosDimitris Apostolou2024-09-031-3/+3
|
* tor-memquota: Pass EnabledToken to IsParticipant methodsIan Jackson2024-08-191-3/+4
| | | | | | | This will hopefully allow much caller code to be compiled out. The users (IsParticipant impls) don't generally need to bother with it - they can just ignore it.
* tor-memquota: Put EnabledToken in various structs, including the reclaimerIan Jackson2024-08-191-2/+10
|
* tor-memquota: Support a no-op MemoryQuotaTrackerIan Jackson2024-08-191-3/+3
| | | | | | | | | | Wrap up most of the structures in IfEnabled. Sadly this diff is very noisy. I experimented with macros for the little enabled check at the start of each function but they didn't really help. We don't test this yet. We'll do a smoke test of this later.
* tor-memquota: pre-apply rustfmt churnIan Jackson2024-08-191-3/+10
| | | | This will make some later diffs easier to read.
* Rename tor-memtrack to tor-memquotaIan Jackson2024-04-291-0/+396