< prev index next >

src/share/vm/gc_implementation/shared/parGCAllocBuffer.hpp

Print this page
rev 8203 : [mq]: backout

@@ -20,23 +20,23 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  *
  */
 
-#ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_PLAB_HPP
-#define SHARE_VM_GC_IMPLEMENTATION_SHARED_PLAB_HPP
+#ifndef SHARE_VM_GC_IMPLEMENTATION_PARNEW_PARGCALLOCBUFFER_HPP
+#define SHARE_VM_GC_IMPLEMENTATION_PARNEW_PARGCALLOCBUFFER_HPP
 
 #include "gc_implementation/shared/gcUtil.hpp"
 #include "memory/allocation.hpp"
 #include "runtime/atomic.hpp"
 #include "utilities/globalDefinitions.hpp"
 
 // Forward declarations.
 class PLABStats;
 
 // A per-thread allocation buffer used during GC.
-class PLAB: public CHeapObj<mtGC> {
+class ParGCAllocBuffer: public CHeapObj<mtGC> {
 protected:
   char      head[32];
   size_t    _word_sz;          // In HeapWord units
   HeapWord* _bottom;
   HeapWord* _top;

@@ -63,12 +63,12 @@
   size_t retire_internal();
 
 public:
   // Initializes the buffer to be empty, but with the given "word_sz".
   // Must get initialized with "set_buf" for an allocation to succeed.
-  PLAB(size_t word_sz);
-  virtual ~PLAB() {}
+  ParGCAllocBuffer(size_t word_sz);
+  virtual ~ParGCAllocBuffer() {}
 
   // Minimum PLAB size.
   static size_t min_size();
   // Maximum PLAB size.
   static size_t max_size();

@@ -164,15 +164,15 @@
     _desired_plab_sz(desired_plab_sz_),
     _filter(wt)
   { }
 
   static const size_t min_size() {
-    return PLAB::min_size();
+    return ParGCAllocBuffer::min_size();
   }
 
   static const size_t max_size() {
-    return PLAB::max_size();
+    return ParGCAllocBuffer::max_size();
   }
 
   size_t desired_plab_sz() {
     return _desired_plab_sz;
   }

@@ -192,6 +192,6 @@
   void add_wasted(size_t v) {
     Atomic::add_ptr(v, &_wasted);
   }
 };
 
-#endif // SHARE_VM_GC_IMPLEMENTATION_SHARED_PLAB_HPP
+#endif // SHARE_VM_GC_IMPLEMENTATION_PARNEW_PARGCALLOCBUFFER_HPP
< prev index next >