diff --git a/src/central_freelist.cc b/src/central_freelist.cc index 9e11c51..f0eef4e 100644 --- a/src/central_freelist.cc +++ b/src/central_freelist.cc @@ -93,14 +93,9 @@ void CentralFreeList::ReleaseListToSpans(void* start) { } } -Span* MapObjectToSpan(void* object) { +void CentralFreeList::ReleaseToSpans(void* object) { const PageID p = reinterpret_cast(object) >> kPageShift; Span* span = Static::pageheap()->GetDescriptor(p); - return span; -} - -void CentralFreeList::ReleaseToSpans(void* object) { - Span* span = MapObjectToSpan(object); ASSERT(span != NULL); ASSERT(span->refcount > 0);