comparison src/share/vm/runtime/compilationPolicy.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 9191895df19d
children e522a00b91aa bd7a7ce2e264
comparison
equal deleted inserted replaced
6939:c284cf4781f0 6940:18fb7da42534
625 625
626 const char* StackWalkCompPolicy::shouldNotInline(methodHandle m) { 626 const char* StackWalkCompPolicy::shouldNotInline(methodHandle m) {
627 // negative filter: should send NOT be inlined? returns NULL (--> inline) or rejection msg 627 // negative filter: should send NOT be inlined? returns NULL (--> inline) or rejection msg
628 if (m->is_abstract()) return (_msg = "abstract method"); 628 if (m->is_abstract()) return (_msg = "abstract method");
629 // note: we allow ik->is_abstract() 629 // note: we allow ik->is_abstract()
630 if (!InstanceKlass::cast(m->method_holder())->is_initialized()) return (_msg = "method holder not initialized"); 630 if (!m->method_holder()->is_initialized()) return (_msg = "method holder not initialized");
631 if (m->is_native()) return (_msg = "native method"); 631 if (m->is_native()) return (_msg = "native method");
632 nmethod* m_code = m->code(); 632 nmethod* m_code = m->code();
633 if (m_code != NULL && m_code->code_size() > InlineSmallCode) 633 if (m_code != NULL && m_code->code_size() > InlineSmallCode)
634 return (_msg = "already compiled into a big method"); 634 return (_msg = "already compiled into a big method");
635 635