8221361: Eliminate two-phase initialization for PtrQueueSet classes

Move allocator and CBL monitor init to constructor.

Reviewed-by: tschatzl, shade
This commit is contained in:
Kim Barrett 2019-09-09 16:54:48 -04:00
parent ea0fbbca51
commit 8b67b75f50
17 changed files with 57 additions and 133 deletions

View file

@ -303,13 +303,9 @@ protected:
bool _all_active;
// Create an empty ptr queue set.
PtrQueueSet();
PtrQueueSet(BufferNode::Allocator* allocator);
~PtrQueueSet();
// Because of init-order concerns, we can't pass these as constructor
// arguments.
void initialize(BufferNode::Allocator* allocator);
public:
// Return the associated BufferNode allocator.