hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 24658 e41df2fc6e87
parent 24424 2658d7834c6e
child 24828 dd5406c950a1
equal deleted inserted replaced
24462:0676642e6560 24658:e41df2fc6e87
  1271   return false;
  1271   return false;
  1272 }
  1272 }
  1273 
  1273 
  1274 
  1274 
  1275 void InstanceKlass::methods_do(void f(Method* method)) {
  1275 void InstanceKlass::methods_do(void f(Method* method)) {
       
  1276   // Methods aren't stable until they are loaded.  This can be read outside
       
  1277   // a lock through the ClassLoaderData for profiling
       
  1278   if (!is_loaded()) {
       
  1279     return;
       
  1280   }
       
  1281 
  1276   int len = methods()->length();
  1282   int len = methods()->length();
  1277   for (int index = 0; index < len; index++) {
  1283   for (int index = 0; index < len; index++) {
  1278     Method* m = methods()->at(index);
  1284     Method* m = methods()->at(index);
  1279     assert(m->is_method(), "must be method");
  1285     assert(m->is_method(), "must be method");
  1280     f(m);
  1286     f(m);