mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 09:04:41 +02:00
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:
parent
ea0fbbca51
commit
8b67b75f50
17 changed files with 57 additions and 133 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue