src/hotspot/share/oops/instanceMirrorKlass.cpp
changeset 50882 80abf702eed8
parent 50752 9d62da00bf15
child 51491 187c84a5efe1
equal deleted inserted replaced
50881:a21cad3fa448 50882:80abf702eed8
    50   int size = instance_size(k);
    50   int size = instance_size(k);
    51   assert(size > 0, "total object size must be positive: %d", size);
    51   assert(size > 0, "total object size must be positive: %d", size);
    52 
    52 
    53   // Since mirrors can be variable sized because of the static fields, store
    53   // Since mirrors can be variable sized because of the static fields, store
    54   // the size in the mirror itself.
    54   // the size in the mirror itself.
    55   return (instanceOop)CollectedHeap::class_allocate(this, size, CHECK_NULL);
    55   return (instanceOop)Universe::heap()->class_allocate(this, size, CHECK_NULL);
    56 }
    56 }
    57 
    57 
    58 int InstanceMirrorKlass::oop_size(oop obj) const {
    58 int InstanceMirrorKlass::oop_size(oop obj) const {
    59   return java_lang_Class::oop_size(obj);
    59   return java_lang_Class::oop_size(obj);
    60 }
    60 }