diff --git a/src/hotspot/share/compiler/compilationPolicy.cpp b/src/hotspot/share/compiler/compilationPolicy.cpp index d61de7cc866c1..ff0ae7cc5cfc9 100644 --- a/src/hotspot/share/compiler/compilationPolicy.cpp +++ b/src/hotspot/share/compiler/compilationPolicy.cpp @@ -1090,6 +1090,10 @@ CompLevel CompilationPolicy::common(const methodHandle& method, CompLevel cur_le } else { next_level = CompLevel_full_optimization; } + } else if (method->is_native() && CompilationModeFlag::disable_intermediate()) { + if (Predicate::apply(method, cur_level, method->invocation_count(), 0)) { + next_level = CompLevel_full_optimization; + } } } break;