1703N/A * or visit www.oracle.com if you need additional information or have any
1879N/A#include "precompiled.hpp"
1879N/A#include "compiler/compileBroker.hpp"
1879N/A#include "memory/resourceArea.hpp"
1879N/A#include "runtime/arguments.hpp"
1879N/A#include "runtime/simpleThresholdPolicy.hpp"
1879N/A#include "runtime/simpleThresholdPolicy.inline.hpp"
2124N/A#include "code/scopeDesc.hpp"
2616N/A case REMOVE_FROM_QUEUE:
2616N/A case UPDATE_IN_QUEUE:
2616N/A case MAKE_NOT_ENTRANT:
1703N/A if (inlinee_event) {
1703N/A if (inlinee_event) {
1703N/A need_comma = true;
4018N/A need_comma = true;
1703N/A need_comma = true;
1703N/A if (CICompilerCountPerCPU) {
2124N/A if (PrintTieredEvents) {
1703N/A if (PrintTieredEvents) {
3108N/Avoid SimpleThresholdPolicy::compile(methodHandle mh, int bci, CompLevel level, JavaThread* thread) {
1871N/A // Check if the method can be compiled. If it cannot be compiled with C1, continue profiling
1871N/A // see common() ). If the method cannot be compiled with C2 but still can with C1, compile it with
2662N/A if (PrintTieredEvents) {
3108N/Avoid SimpleThresholdPolicy::submit_compile(methodHandle mh, int bci, CompLevel level, JavaThread* thread) {
1703N/A int hot_count = (bci == InvocationEntryBci) ? mh->invocation_count() : mh->backedge_count();
1703N/A case CompLevel_none:
1703N/A case CompLevel_limited_profile: {
1703N/A case CompLevel_full_profile: {
1703N/A case CompLevel_none:
1703N/A case CompLevel_limited_profile: {
1703N/A case CompLevel_full_profile: {
1703N/A// Common transition function. Given a predicate determines if a method should transition to another level.
1703N/ACompLevel SimpleThresholdPolicy::common(Predicate p, methodOop method, CompLevel cur_level) {
2662N/A case CompLevel_none:
1703N/A return next_level;
2615N/A return next_level;
1703N/A if (is_compilation_enabled() && !CompileBroker::compilation_is_in_queue(mh, InvocationEntryBci)) {
1703N/A is_compiling = true;