hotspot/src/share/vm/runtime/simpleThresholdPolicy.hpp
changeset 38666 5ff19807abd5
parent 38133 78b95467b9f1
child 42650 1f304d0c888b
equal deleted inserted replaced
38665:0a34ead4e9d1 38666:5ff19807abd5
    49   // Common transition function. Given a predicate determines if a method should transition to another level.
    49   // Common transition function. Given a predicate determines if a method should transition to another level.
    50   CompLevel common(Predicate p, Method* method, CompLevel cur_level);
    50   CompLevel common(Predicate p, Method* method, CompLevel cur_level);
    51   // Transition functions.
    51   // Transition functions.
    52   // call_event determines if a method should be compiled at a different
    52   // call_event determines if a method should be compiled at a different
    53   // level with a regular invocation entry.
    53   // level with a regular invocation entry.
    54   CompLevel call_event(Method* method, CompLevel cur_level);
    54   CompLevel call_event(Method* method, CompLevel cur_level, JavaThread* thread);
    55   // loop_event checks if a method should be OSR compiled at a different
    55   // loop_event checks if a method should be OSR compiled at a different
    56   // level.
    56   // level.
    57   CompLevel loop_event(Method* method, CompLevel cur_level);
    57   CompLevel loop_event(Method* method, CompLevel cur_level, JavaThread* thread);
    58   void print_counters(const char* prefix, methodHandle mh);
    58   void print_counters(const char* prefix, methodHandle mh);
    59 protected:
    59 protected:
    60   int c1_count() const     { return _c1_count; }
    60   int c1_count() const     { return _c1_count; }
    61   int c2_count() const     { return _c2_count; }
    61   int c2_count() const     { return _c2_count; }
    62   void set_c1_count(int x) { _c1_count = x;    }
    62   void set_c1_count(int x) { _c1_count = x;    }