hotspot/src/share/vm/utilities/array.hpp
changeset 27680 8ecc0871c18e
parent 25500 4d2e06147d1e
child 33105 294e48b4f704
--- a/hotspot/src/share/vm/utilities/array.hpp	Thu Nov 13 11:14:01 2014 +0100
+++ b/hotspot/src/share/vm/utilities/array.hpp	Fri Nov 14 09:47:09 2014 +0100
@@ -322,7 +322,7 @@
   void* operator new(size_t size, ClassLoaderData* loader_data, int length, bool read_only, TRAPS) throw() {
     size_t word_size = Array::size(length);
     return (void*) Metaspace::allocate(loader_data, word_size, read_only,
-                                       MetaspaceObj::array_type(sizeof(T)), CHECK_NULL);
+                                       MetaspaceObj::array_type(sizeof(T)), THREAD);
   }
 
   static size_t byte_sizeof(int length) { return sizeof(Array<T>) + MAX2(length - 1, 0) * sizeof(T); }