315 private: |
315 private: |
316 // Turn off copy constructor and assignment operator. |
316 // Turn off copy constructor and assignment operator. |
317 Array(const Array<T>&); |
317 Array(const Array<T>&); |
318 void operator=(const Array<T>&); |
318 void operator=(const Array<T>&); |
319 |
319 |
320 void* operator new(size_t size, ClassLoaderData* loader_data, int length, bool read_only, TRAPS) { |
320 void* operator new(size_t size, ClassLoaderData* loader_data, int length, bool read_only, TRAPS) throw() { |
321 size_t word_size = Array::size(length); |
321 size_t word_size = Array::size(length); |
322 return (void*) Metaspace::allocate(loader_data, word_size, read_only, |
322 return (void*) Metaspace::allocate(loader_data, word_size, read_only, |
323 MetaspaceObj::array_type(sizeof(T)), CHECK_NULL); |
323 MetaspaceObj::array_type(sizeof(T)), CHECK_NULL); |
324 } |
324 } |
325 |
325 |