comparison src/share/vm/oops/objArrayKlass.cpp @ 11034:e0c9a1d29eb4

8016325: JVM hangs verifying system dictionary Summary: Minimize redundant verifications of Klasses. Reviewed-by: hseigel, jmasa
author coleenp
date Mon, 24 Jun 2013 18:55:46 -0400
parents db9981fd3124
children 55a0da3d420b
comparison
equal deleted inserted replaced
11033:d9eed26d638a 11034:e0c9a1d29eb4
674 } 674 }
675 675
676 676
677 // Verification 677 // Verification
678 678
679 void ObjArrayKlass::verify_on(outputStream* st) { 679 void ObjArrayKlass::verify_on(outputStream* st, bool check_dictionary) {
680 ArrayKlass::verify_on(st); 680 ArrayKlass::verify_on(st, check_dictionary);
681 guarantee(element_klass()->is_metadata(), "should be in metaspace");
682 guarantee(element_klass()->is_klass(), "should be klass"); 681 guarantee(element_klass()->is_klass(), "should be klass");
683 guarantee(bottom_klass()->is_metadata(), "should be in metaspace");
684 guarantee(bottom_klass()->is_klass(), "should be klass"); 682 guarantee(bottom_klass()->is_klass(), "should be klass");
685 Klass* bk = bottom_klass(); 683 Klass* bk = bottom_klass();
686 guarantee(bk->oop_is_instance() || bk->oop_is_typeArray(), "invalid bottom klass"); 684 guarantee(bk->oop_is_instance() || bk->oop_is_typeArray(), "invalid bottom klass");
687 } 685 }
688 686