src/share/vm/runtime/simpleThresholdPolicy.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hs-comp Cdiff src/share/vm/runtime/simpleThresholdPolicy.hpp
src/share/vm/runtime/simpleThresholdPolicy.hpp
Print this page
*** 114,121 ****
--- 114,125 ----
virtual bool should_not_inline(ciEnv* env, ciMethod* callee) {
return (env->comp_level() == CompLevel_limited_profile ||
env->comp_level() == CompLevel_full_profile) &&
callee->has_loops();
}
+ virtual void compile_done(methodHandle method, Thread* THREAD) {
+ // Ensure that method has MethodCounters, we need it to store highest compilation levels
+ method->get_method_counters(CHECK_AND_CLEAR);
+ }
};
#endif // SHARE_VM_RUNTIME_SIMPLETHRESHOLDPOLICY_HPP
src/share/vm/runtime/simpleThresholdPolicy.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File