diff options
| author | Ryan Prichard <rprichard@google.com> | 2019-04-01 16:16:05 -0700 |
|---|---|---|
| committer | Ryan Prichard <rprichard@google.com> | 2019-04-01 16:17:59 -0700 |
| commit | db6edcca36082a1a7b7e258e5d48f242695d827b (patch) | |
| tree | d314d0d7e5a8657bd562deac7c7ba21d78b11f7d /libc/bionic/bionic_allocator.cpp | |
| parent | 4699cf61746d37fc11c8eb8bdfc7eb296a476e4b (diff) | |
Fix BionicAllocator comment
Test: n/a
Bug: none
Change-Id: Ic437d35231b47553add49e20d7ee451d42db710c
Diffstat (limited to 'libc/bionic/bionic_allocator.cpp')
| -rw-r--r-- | libc/bionic/bionic_allocator.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/bionic/bionic_allocator.cpp b/libc/bionic/bionic_allocator.cpp index da0f7d08b..168d6ba19 100644 --- a/libc/bionic/bionic_allocator.cpp +++ b/libc/bionic/bionic_allocator.cpp @@ -45,11 +45,11 @@ // // BionicAllocator is a general purpose allocator designed to provide the same -// functionality as the malloc/free/realloc libc functions. +// functionality as the malloc/free/realloc/memalign libc functions. // // On alloc: -// If size is >= 1k allocator proxies malloc call directly to mmap -// If size < 1k allocator uses SmallObjectAllocator for the size +// If size is > 1k allocator proxies malloc call directly to mmap. +// If size <= 1k allocator uses BionicSmallObjectAllocator for the size // rounded up to the nearest power of two. // // On free: @@ -57,10 +57,10 @@ // For a pointer allocated using proxy-to-mmap allocator unmaps // the memory. // -// For a pointer allocated using SmallObjectAllocator it adds +// For a pointer allocated using BionicSmallObjectAllocator it adds // the block to free_blocks_list in the corresponding page. If the number of -// free pages reaches 2, SmallObjectAllocator munmaps one of the pages keeping -// the other one in reserve. +// free pages reaches 2, BionicSmallObjectAllocator munmaps one of the pages +// keeping the other one in reserve. // Memory management for large objects is fairly straightforward, but for small // objects it is more complicated. If you are changing this code, one simple |
