equal
deleted
inserted
replaced
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 } |