< prev index next >

src/share/vm/oops/typeArrayKlass.cpp

Print this page
rev 12310 : [mq]: gcinterface.patch

@@ -102,11 +102,11 @@
   if (length >= 0) {
     if (length <= max_length()) {
       size_t size = typeArrayOopDesc::object_size(layout_helper(), length);
       KlassHandle h_k(THREAD, this);
       typeArrayOop t;
-      CollectedHeap* ch = Universe::heap();
+      CollectedHeap* ch = GC::gc()->heap();
       if (do_zero) {
         t = (typeArrayOop)CollectedHeap::array_allocate(h_k, (int)size, length, CHECK_NULL);
       } else {
         t = (typeArrayOop)CollectedHeap::array_allocate_nozero(h_k, (int)size, length, CHECK_NULL);
       }
< prev index next >