Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/vm/runtime/simpleThresholdPolicy.hpp
          +++ new/src/share/vm/runtime/simpleThresholdPolicy.hpp
↓ open down ↓ 47 lines elided ↑ open up ↑
  48   48    bool loop_predicate(int i, int b, CompLevel cur_level);
  49   49    // Common transition function. Given a predicate determines if a method should transition to another level.
  50   50    CompLevel common(Predicate p, methodOop method, CompLevel cur_level);
  51   51    // Transition functions.
  52   52    // call_event determines if a method should be compiled at a different
  53   53    // level with a regular invocation entry.
  54   54    CompLevel call_event(methodOop method, CompLevel cur_level);
  55   55    // loop_event checks if a method should be OSR compiled at a different
  56   56    // level.
  57   57    CompLevel loop_event(methodOop method, CompLevel cur_level);
  58      -
       58 +  void print_counters(const char* prefix, methodHandle mh);
  59   59  protected:
  60   60    int c1_count() const     { return _c1_count; }
  61   61    int c2_count() const     { return _c2_count; }
  62   62    void set_c1_count(int x) { _c1_count = x;    }
  63   63    void set_c2_count(int x) { _c2_count = x;    }
  64   64  
  65   65    enum EventType { CALL, LOOP, COMPILE, REMOVE_FROM_QUEUE, UPDATE_IN_QUEUE, REPROFILE, MAKE_NOT_ENTRANT };
  66   66    void print_event(EventType type, methodHandle mh, methodHandle imh, int bci, CompLevel level);
  67   67    // Print policy-specific information if necessary
  68   68    virtual void print_specific(EventType type, methodHandle mh, methodHandle imh, int bci, CompLevel level) { }
↓ open down ↓ 53 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX