diff options
author | coleenp <none@none> | 2012-11-06 15:09:37 -0500 |
---|---|---|
committer | coleenp <none@none> | 2012-11-06 15:09:37 -0500 |
commit | 17aa43774e8fb719c06bf5756b6ec1fa82f2201a (patch) | |
tree | 4ce00b2aa794b9d32ead67e1c4941243cf8eab63 /src/share/vm/runtime/compilationPolicy.cpp | |
parent | 94a7d834b26f0eb35ffe618d0a3b60c8a4951a4f (diff) |
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
Diffstat (limited to 'src/share/vm/runtime/compilationPolicy.cpp')
-rw-r--r-- | src/share/vm/runtime/compilationPolicy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/vm/runtime/compilationPolicy.cpp b/src/share/vm/runtime/compilationPolicy.cpp index 940978cf7..73b8f8393 100644 --- a/src/share/vm/runtime/compilationPolicy.cpp +++ b/src/share/vm/runtime/compilationPolicy.cpp @@ -627,7 +627,7 @@ const char* StackWalkCompPolicy::shouldNotInline(methodHandle m) { // negative filter: should send NOT be inlined? returns NULL (--> inline) or rejection msg if (m->is_abstract()) return (_msg = "abstract method"); // note: we allow ik->is_abstract() - if (!InstanceKlass::cast(m->method_holder())->is_initialized()) return (_msg = "method holder not initialized"); + if (!m->method_holder()->is_initialized()) return (_msg = "method holder not initialized"); if (m->is_native()) return (_msg = "native method"); nmethod* m_code = m->code(); if (m_code != NULL && m_code->code_size() > InlineSmallCode) |