NFC: Accumulated nits in comments

Mostly, promote some inline commentary to doc comments.  A typo and some stale
text can go, too.
This commit is contained in:
Nathaniel Wesley Filardo
2021-09-28 15:57:03 +01:00
committed by Nathaniel Wesley Filardo
parent 73ebb69955
commit 3109ae9f72
3 changed files with 11 additions and 12 deletions

View File

@@ -68,6 +68,9 @@ namespace snmalloc
: remote_allocator(remote_allocator)
{}
/**
* Return all the free lists to the allocator. Used during thread teardown.
*/
template<
size_t allocator_size,
typename SharedStateHandle,
@@ -77,8 +80,6 @@ namespace snmalloc
{
auto& key = entropy.get_free_list_key();
// Return all the free lists to the allocator.
// Used during thread teardown
for (size_t i = 0; i < NUM_SIZECLASSES; i++)
{
// TODO could optimise this, to return the whole list in one append