< prev index next >

src/hotspot/share/oops/array.inline.hpp

Print this page
*** 35,6 ***
--- 35,14 ---
    size_t word_size = Array::size(length);
    return (void*) Metaspace::allocate(loader_data, word_size,
                                       MetaspaceObj::array_type(sizeof(T)), THREAD);
  }
  
+ template <typename T>
+ inline void* Array<T>::operator new(size_t size, ClassLoaderData* loader_data, int length) throw() {
+   //assert(T is training data, "");
+   size_t word_size = Array::size(length);
+   return (void*) Metaspace::allocate(loader_data, word_size,
+                                      MetaspaceObj::array_type(sizeof(T)));
+ }
+ 
  #endif // SHARE_OOPS_ARRAY_INLINE_HPP
< prev index next >