8286628: Remove unused BufferNode::Allocator::flush_free_list

Reviewed-by: kbarrett, tschatzl
This commit is contained in:
Albert Mingkun Yang 2022-05-13 11:59:23 +00:00
parent 04df8b7437
commit 8daf08dbc4
2 changed files with 1 additions and 5 deletions

View File

@ -194,10 +194,6 @@ public:
size_t free_count() const;
BufferNode* allocate();
void release(BufferNode* node);
// If _free_list has items buffered in the pending list, transfer
// these to make them available for re-allocation.
bool flush_free_list() { return _free_list.try_transfer_pending(); }
};
// A PtrQueueSet represents resources common to a set of pointer queues.

View File

@ -38,7 +38,7 @@
class BufferNode::TestSupport : AllStatic {
public:
static bool try_transfer_pending(Allocator* allocator) {
return allocator->flush_free_list();
return allocator->_free_list.try_transfer_pending();
}
class CompletedList;