equal
deleted
inserted
replaced
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); |