summaryrefslogtreecommitdiff
path: root/crates/tor-memtrack/src/mtracker
Commit message (Collapse)AuthorAgeFilesLines
* Rename tor-memtrack to tor-memquotaIan Jackson2024-04-295-1533/+0
|
* tor_memtrack: Use DropBombCondition in bookkeeping.rsIan Jackson2024-04-241-5/+24
| | | | | | In addition to the in-module, switchable, tests, I have done an ad-hoc test, removing the bulk of the accounting from Participation::release_qty, it crashes in a test as expected.
* tor-memtrack: bookkeeping: Break out BOMB d-d conditionIan Jackson2024-04-241-1/+3
| | | | We're going to want this in other places.
* tor_memtrack: Soup up DropBomb and make into its own moduleIan Jackson2024-04-241-3/+0
| | | | | | | | And make it testable. In addition to the in-module tests, I have done an ad-hoc test, removing the .promise call from deferred_drop, and it does panic in the test cawe as desired.
* tor-memtrack: Explain lack of thread parallelism in notify_victimsIan Jackson2024-04-231-0/+6
|
* tor-memtrack: Explain the code structure in reclaim::inner_loopIan Jackson2024-04-231-0/+4
|
* tor-memtrack: Break out aid_and_children_recursivelyIan Jackson2024-04-231-14/+1
| | | | | As per paras 2- of https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2091#note_3021478
* tor-memtrack: Remove an unused mutIan Jackson2024-04-231-1/+1
| | | | | As per para 1 of https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2091#note_3021478
* tor-memtrack: Correct doc comment for `reclaim::inner_loop`Ian Jackson2024-04-231-1/+5
| | | | | Addresses https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2091#note_3021475
* tor-memtrack: Explain the relationship to `mtracker` betterIan Jackson2024-04-231-1/+4
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2091#note_3021473
* tor-memtrack: Explain drop impl for GuardWithDeferredDrop in prodIan Jackson2024-04-231-0/+8
|
* tor-memtrack: Correct "reentrant" terminologyIan Jackson2024-04-231-1/+1
|
* tor-memtrack: Avoid accidental poisoning during claimIan Jackson2024-04-231-0/+7
|
* tor-memtrack: Explain what poisoned total state is forIan Jackson2024-04-231-0/+2
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2091#note_3021460
* tor-memtrack: Docs fixesgabi-2502024-04-231-1/+1
|
* tor-memtrack: Add a let binding to clarifygabi-2502024-04-231-1/+1
|
* tor-memtrack: Fix docs typogabi-2502024-04-231-1/+1
|
* tor-memtrack: Doc fixesgabi-2502024-04-231-4/+4
|
* tor-memtrack: Fix various typosgabi-2502024-04-231-1/+1
|
* tor-memtrack: Provide comprehensive tests for the memory trackerIan Jackson2024-04-231-0/+678
|
* tor-memtrack: reclaim: Implement reclamationIan Jackson2024-04-231-1/+378
|
* tor-memtrack: reclaim: Provide helper deferred_drop moduleIan Jackson2024-04-232-0/+77
|
* tor-memtrack: implement MemoryQuotaTrackerIan Jackson2024-04-232-0/+81
| | | | | | Includes the principal data structures and their impls. Reclamation will come in a moment.
* tor-memtrack: Provide helper bookkeeping moduleIan Jackson2024-04-231-0/+281