From 20c9e576689418a166e5847a7b2467e297d4907f Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 10 Dec 2022 11:29:05 +0000 Subject: [PATCH] NFC: standard_range: update commentary --- src/snmalloc/backend/standard_range.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/snmalloc/backend/standard_range.h b/src/snmalloc/backend/standard_range.h index 225a9a3..40c7cd2 100644 --- a/src/snmalloc/backend/standard_range.h +++ b/src/snmalloc/backend/standard_range.h @@ -64,13 +64,22 @@ namespace snmalloc // Expose a global range for the initial allocation of meta-data. using GlobalMetaRange = Pipe; - // 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(); } - // 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.