diff 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
line wrap: on
line diff
--- a/src/share/vm/oops/klass.cpp	Thu May 15 09:25:27 2014 -0400
+++ b/src/share/vm/oops/klass.cpp	Thu May 15 18:23:26 2014 -0400
@@ -648,7 +648,7 @@
 
   // This can be expensive, but it is worth checking that this klass is actually
   // in the CLD graph but not in production.
-  assert(ClassLoaderDataGraph::contains((address)this), "Should be");
+  assert(Metaspace::contains((address)this), "Should be");
 
   guarantee(this->is_klass(),"should be klass");