< prev index next >
src/hotspot/share/gc/shared/memAllocator.cpp
Print this page
@@ -424,10 +424,12 @@
assert(_length >= 0, "length should be non-negative");
if (_do_zero) {
mem_clear(mem);
}
arrayOopDesc::set_length(mem, _length);
+ assert(ArrayKlass::cast(_klass)->storage_properties().is_empty() ||
+ ArrayKlass::cast(_klass)->dimension() == 1, "Multidim should have no storage props");
return finish_with_properties(mem, ArrayKlass::cast(_klass)->storage_properties());
}
oop ClassAllocator::initialize(HeapWord* mem) const {
// Set oop_size field before setting the _klass field because a
< prev index next >