NFC: standard_range: update commentary

This commit is contained in:
Nathaniel Wesley Filardo
2022-12-10 11:29:05 +00:00
committed by Nathaniel Filardo
parent 8f4cc1b4da
commit 20c9e57668

View File

@@ -64,13 +64,22 @@ namespace snmalloc
// Expose a global range for the initial allocation of meta-data.
using GlobalMetaRange = Pipe<ObjectRange, GlobalRange>;
// Where we get user allocations from.
/**
* Where we turn for allocations of user chunks.
*
* Reach over the SmallBuddyRange that's at the near end of the ObjectRange
* pipe, rather than having that range adapter dynamically branch to its
* parent.
*/
LargeObjectRange* get_object_range()
{
return object_range.template ancestor<LargeObjectRange>();
}
// Where we get meta-data allocations from.
/**
* The backend has its own need for small objects without using the
* frontend allocators; this range manages those.
*/
ObjectRange& get_meta_range()
{
// Use the object range to service meta-data requests.