Mercurial > hg > graal-compiler
comparison src/share/vm/prims/jvmtiEnv.cpp @ 6940:18fb7da42534
8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass
Summary: Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files.
Reviewed-by: dholmes, coleenp, zgu
Contributed-by: harold.seigel@oracle.com
author | coleenp |
---|---|
date | Tue, 06 Nov 2012 15:09:37 -0500 |
parents | da91efe96a93 |
children | e522a00b91aa 070d523b96a7 |
comparison
equal
deleted
inserted
replaced
6939:c284cf4781f0 | 6940:18fb7da42534 |
---|---|
2820 | 2820 |
2821 NULL_CHECK(method_oop, JVMTI_ERROR_INVALID_METHODID); | 2821 NULL_CHECK(method_oop, JVMTI_ERROR_INVALID_METHODID); |
2822 JavaThread* current_thread = JavaThread::current(); | 2822 JavaThread* current_thread = JavaThread::current(); |
2823 | 2823 |
2824 // does the klass have any local variable information? | 2824 // does the klass have any local variable information? |
2825 InstanceKlass* ik = InstanceKlass::cast(method_oop->method_holder()); | 2825 InstanceKlass* ik = method_oop->method_holder(); |
2826 if (!ik->access_flags().has_localvariable_table()) { | 2826 if (!ik->access_flags().has_localvariable_table()) { |
2827 return (JVMTI_ERROR_ABSENT_INFORMATION); | 2827 return (JVMTI_ERROR_ABSENT_INFORMATION); |
2828 } | 2828 } |
2829 | 2829 |
2830 ConstantPool* constants = method_oop->constants(); | 2830 ConstantPool* constants = method_oop->constants(); |