equal
deleted
inserted
replaced
475 assert(obj->is_objArray(), "must be objArray"); |
475 assert(obj->is_objArray(), "must be objArray"); |
476 objArrayOop oa = objArrayOop(obj); |
476 objArrayOop oa = objArrayOop(obj); |
477 int print_len = MIN2((intx) oa->length(), MaxElementPrintSize); |
477 int print_len = MIN2((intx) oa->length(), MaxElementPrintSize); |
478 for(int index = 0; index < print_len; index++) { |
478 for(int index = 0; index < print_len; index++) { |
479 st->print(" - %3d : ", index); |
479 st->print(" - %3d : ", index); |
480 oa->obj_at(index)->print_value_on(st); |
480 if (oa->obj_at(index) != NULL) { |
481 st->cr(); |
481 oa->obj_at(index)->print_value_on(st); |
|
482 st->cr(); |
|
483 } else { |
|
484 st->print_cr("NULL"); |
|
485 } |
482 } |
486 } |
483 int remaining = oa->length() - print_len; |
487 int remaining = oa->length() - print_len; |
484 if (remaining > 0) { |
488 if (remaining > 0) { |
485 st->print_cr(" - <%d more elements, increase MaxElementPrintSize to print>", remaining); |
489 st->print_cr(" - <%d more elements, increase MaxElementPrintSize to print>", remaining); |
486 } |
490 } |
492 assert(obj->is_objArray(), "must be objArray"); |
496 assert(obj->is_objArray(), "must be objArray"); |
493 st->print("a "); |
497 st->print("a "); |
494 element_klass()->print_value_on(st); |
498 element_klass()->print_value_on(st); |
495 int len = objArrayOop(obj)->length(); |
499 int len = objArrayOop(obj)->length(); |
496 st->print("[%d] ", len); |
500 st->print("[%d] ", len); |
497 obj->print_address_on(st); |
501 if (obj != NULL) { |
|
502 obj->print_address_on(st); |
|
503 } else { |
|
504 st->print_cr("NULL"); |
|
505 } |
498 } |
506 } |
499 |
507 |
500 const char* ObjArrayKlass::internal_name() const { |
508 const char* ObjArrayKlass::internal_name() const { |
501 return external_name(); |
509 return external_name(); |
502 } |
510 } |