< prev index next >

src/hotspot/share/oops/array.hpp

Print this page
rev 57095 : [mq]: use
rev 57096 : [mq]: trailing_semi

@@ -27,10 +27,11 @@
 
 #include "memory/allocation.hpp"
 #include "memory/metaspace.hpp"
 #include "runtime/atomic.hpp"
 #include "utilities/align.hpp"
+#include "utilities/macros.hpp"
 
 // Array for metadata allocation
 
 template <typename T>
 class Array: public MetaspaceObj {

@@ -47,13 +48,11 @@
   void initialize(int length) {
     _length = length;
   }
 
  private:
-  // Turn off copy constructor and assignment operator.
-  Array(const Array<T>&);
-  void operator=(const Array<T>&);
+  NONCOPYABLE(Array);
 
   void* operator new(size_t size, ClassLoaderData* loader_data, int length, TRAPS) throw() {
     size_t word_size = Array::size(length);
     return (void*) Metaspace::allocate(loader_data, word_size,
                                        MetaspaceObj::array_type(sizeof(T)), THREAD);
< prev index next >