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