comparison src/share/vm/oops/klass.cpp @ 17935:7384f6a12fc1

8038212: Method::is_valid_method() check has performance regression impact for stackwalking Summary: Only prune metaspace virtual spaces at safepoint so walking them is safe outside a safepoint. Reviewed-by: mgerdin, mgronlun, hseigel, stefank
author coleenp
date Thu, 15 May 2014 18:23:26 -0400
parents 34862ced4a87
children 52b4284cb496 54bc75c144b0 ce8f6bb717c9
comparison
equal deleted inserted replaced
17934:366c198c896d 17935:7384f6a12fc1
646 646
647 void Klass::verify_on(outputStream* st) { 647 void Klass::verify_on(outputStream* st) {
648 648
649 // This can be expensive, but it is worth checking that this klass is actually 649 // This can be expensive, but it is worth checking that this klass is actually
650 // in the CLD graph but not in production. 650 // in the CLD graph but not in production.
651 assert(ClassLoaderDataGraph::contains((address)this), "Should be"); 651 assert(Metaspace::contains((address)this), "Should be");
652 652
653 guarantee(this->is_klass(),"should be klass"); 653 guarantee(this->is_klass(),"should be klass");
654 654
655 if (super() != NULL) { 655 if (super() != NULL) {
656 guarantee(super()->is_klass(), "should be klass"); 656 guarantee(super()->is_klass(), "should be klass");