src/hotspot/share/gc/shared/ptrQueue.hpp
changeset 55752 8ae33203d600
parent 55498 e64383344f14
child 57975 a333fdeb8de0
--- a/src/hotspot/share/gc/shared/ptrQueue.hpp	Fri Jul 19 12:39:31 2019 -0400
+++ b/src/hotspot/share/gc/shared/ptrQueue.hpp	Fri Jul 19 16:47:11 2019 -0400
@@ -296,6 +296,10 @@
 class PtrQueueSet {
   BufferNode::Allocator* _allocator;
 
+  // Noncopyable - not defined.
+  PtrQueueSet(const PtrQueueSet&);
+  PtrQueueSet& operator=(const PtrQueueSet&);
+
 protected:
   bool _all_active;
 
@@ -309,6 +313,9 @@
 
 public:
 
+  // Return the associated BufferNode allocator.
+  BufferNode::Allocator* allocator() const { return _allocator; }
+
   // Return the buffer for a BufferNode of size buffer_size().
   void** allocate_buffer();