src/hotspot/share/oops/objArrayKlass.cpp
changeset 50752 9d62da00bf15
parent 50601 3fbae7b9ddb5
child 50882 80abf702eed8
equal deleted inserted replaced
50751:d9132bdf6c30 50752:9d62da00bf15
    27 #include "classfile/packageEntry.hpp"
    27 #include "classfile/packageEntry.hpp"
    28 #include "classfile/symbolTable.hpp"
    28 #include "classfile/symbolTable.hpp"
    29 #include "classfile/systemDictionary.hpp"
    29 #include "classfile/systemDictionary.hpp"
    30 #include "classfile/vmSymbols.hpp"
    30 #include "classfile/vmSymbols.hpp"
    31 #include "gc/shared/collectedHeap.inline.hpp"
    31 #include "gc/shared/collectedHeap.inline.hpp"
    32 #include "gc/shared/specialized_oop_closures.hpp"
       
    33 #include "memory/iterator.inline.hpp"
    32 #include "memory/iterator.inline.hpp"
    34 #include "memory/metadataFactory.hpp"
    33 #include "memory/metadataFactory.hpp"
    35 #include "memory/metaspaceClosure.hpp"
    34 #include "memory/metaspaceClosure.hpp"
    36 #include "memory/resourceArea.hpp"
    35 #include "memory/resourceArea.hpp"
    37 #include "memory/universe.hpp"
    36 #include "memory/universe.hpp"
   140   ArrayKlass::complete_create_array_klass(oak, super_klass, module, CHECK_0);
   139   ArrayKlass::complete_create_array_klass(oak, super_klass, module, CHECK_0);
   141 
   140 
   142   return oak;
   141   return oak;
   143 }
   142 }
   144 
   143 
   145 ObjArrayKlass::ObjArrayKlass(int n, Klass* element_klass, Symbol* name) : ArrayKlass(name) {
   144 ObjArrayKlass::ObjArrayKlass(int n, Klass* element_klass, Symbol* name) : ArrayKlass(name, ID) {
   146   this->set_dimension(n);
   145   this->set_dimension(n);
   147   this->set_element_klass(element_klass);
   146   this->set_element_klass(element_klass);
   148   // decrement refcount because object arrays are not explicitly freed.  The
   147   // decrement refcount because object arrays are not explicitly freed.  The
   149   // InstanceKlass array_name() keeps the name counted while the klass is
   148   // InstanceKlass array_name() keeps the name counted while the klass is
   150   // loaded.
   149   // loaded.