src/hotspot/share/oops/klass.cpp
changeset 50752 9d62da00bf15
parent 50746 85789fb05154
child 50761 cb07f4b539fc
equal deleted inserted replaced
50751:d9132bdf6c30 50752:9d62da00bf15
   188 // which zeros out memory - calloc equivalent.
   188 // which zeros out memory - calloc equivalent.
   189 // The constructor is also used from CppVtableCloner,
   189 // The constructor is also used from CppVtableCloner,
   190 // which doesn't zero out the memory before calling the constructor.
   190 // which doesn't zero out the memory before calling the constructor.
   191 // Need to set the _java_mirror field explicitly to not hit an assert that the field
   191 // Need to set the _java_mirror field explicitly to not hit an assert that the field
   192 // should be NULL before setting it.
   192 // should be NULL before setting it.
   193 Klass::Klass() : _prototype_header(markOopDesc::prototype()),
   193 Klass::Klass(KlassID id) : _id(id),
   194                  _shared_class_path_index(-1),
   194                            _prototype_header(markOopDesc::prototype()),
   195                  _java_mirror(NULL) {
   195                            _shared_class_path_index(-1),
       
   196                            _java_mirror(NULL) {
   196   CDS_ONLY(_shared_class_flags = 0;)
   197   CDS_ONLY(_shared_class_flags = 0;)
   197   CDS_JAVA_HEAP_ONLY(_archived_mirror = 0;)
   198   CDS_JAVA_HEAP_ONLY(_archived_mirror = 0;)
   198   _primary_supers[0] = this;
   199   _primary_supers[0] = this;
   199   set_super_check_offset(in_bytes(primary_supers_offset()));
   200   set_super_check_offset(in_bytes(primary_supers_offset()));
   200 }
   201 }