src/hotspot/share/oops/instanceMirrorKlass.cpp
changeset 52067 2e72562697bf
parent 51516 7c3891b9f1e0
child 53380 c8208421a860
equal deleted inserted replaced
52066:49a21be61dcd 52067:2e72562697bf
    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)Universe::heap()->class_allocate(this, size, CHECK_NULL);
    55   return (instanceOop)Universe::heap()->class_allocate(this, size, THREAD);
    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_raw(obj);
    59   return java_lang_Class::oop_size_raw(obj);
    60 }
    60 }