@@ -36,19 +36,19 @@ struct DlSymAllocator {
3636 static void *Allocate (uptr size_in_bytes, uptr align = kWordSize ) {
3737 void *ptr = InternalAlloc (size_in_bytes, nullptr , align);
3838 CHECK (internal_allocator ()->FromPrimary (ptr));
39- Details::OnAllocate (ptr, Size (ptr));
39+ Details::OnAllocate (ptr, GetSize (ptr));
4040 return ptr;
4141 }
4242
4343 static void *Callocate (usize nmemb, usize size) {
4444 void *ptr = InternalCalloc (nmemb, size);
4545 CHECK (internal_allocator ()->FromPrimary (ptr));
46- Details::OnAllocate (ptr, Size (ptr));
46+ Details::OnAllocate (ptr, GetSize (ptr));
4747 return ptr;
4848 }
4949
5050 static void Free (void *ptr) {
51- uptr size = Size (ptr);
51+ uptr size = GetSize (ptr);
5252 Details::OnFree (ptr, size);
5353 InternalFree (ptr);
5454 }
@@ -61,7 +61,7 @@ struct DlSymAllocator {
6161 Free (ptr);
6262 return nullptr ;
6363 }
64- uptr size = Size (ptr);
64+ uptr size = GetSize (ptr);
6565 uptr memcpy_size = Min (new_size, size);
6666 void *new_ptr = Allocate (new_size);
6767 if (new_ptr)
@@ -75,7 +75,7 @@ struct DlSymAllocator {
7575 return Realloc (ptr, count * size);
7676 }
7777
78- static uptr Size (void *ptr) {
78+ static uptr GetSize (void *ptr) {
7979 return internal_allocator ()->GetActuallyAllocatedSize (ptr);
8080 }
8181
0 commit comments