< prev index next >
src/share/vm/opto/type.cpp
Print this page
@@ -2450,11 +2450,11 @@
//------------------------------dump2------------------------------------------
#ifndef PRODUCT
void TypeValueType::dump2(Dict &d, uint depth, outputStream* st) const {
st->print("valuetype[%d]:{", _vk->field_count());
- st->print("%s", _vk->field_type_by_index(0)->name());
+ st->print("%s", _vk->field_count() != 0 ? _vk->field_type_by_index(0)->name() : "empty");
for (int i = 1; i < _vk->field_count(); ++i) {
st->print(", %s", _vk->field_type_by_index(i)->name());
}
st->print("}");
}
< prev index next >