< prev index next >

src/hotspot/share/runtime/deoptimization.hpp

Print this page
@@ -155,11 +155,11 @@
      _reason_bits = 5,
      _debug_id_bits = 23,
      _action_shift = 0,
      _reason_shift = _action_shift+_action_bits,
      _debug_id_shift = _reason_shift+_reason_bits,
-     BC_CASE_LIMIT = PRODUCT_ONLY(1) NOT_PRODUCT(4) // for _deoptimization_hist
+     BC_CASE_LIMIT = 4 // for _deoptimization_hist
    };
  
    enum UnpackType {
      Unpack_deopt                = 0, // normal deoptimization, use pc computed in unpack_vframe_on_stack
      Unpack_exception            = 1, // exception is pending

@@ -327,10 +327,11 @@
  
    // Statistics
    static void gather_statistics(DeoptReason reason, DeoptAction action,
                                  Bytecodes::Code bc = Bytecodes::_illegal);
    static void print_statistics();
+   static void print_statistics_on(outputStream* st);
  
    // How much room to adjust the last frame's SP by, to make space for
    // the callee's interpreter frame (which expects locals to be next to
    // incoming arguments)
    static int last_frame_adjust(int callee_parameters, int callee_locals);

@@ -487,8 +488,11 @@
    static juint _deoptimization_hist[Reason_LIMIT][1+Action_LIMIT][BC_CASE_LIMIT];
    // Note:  Histogram array size is 1-2 Kb.
  
   public:
    static void update_method_data_from_interpreter(MethodData* trap_mdo, int trap_bci, int reason);
+ 
+   static void init_counters();
+   static void print_counters_on(outputStream* st);
  };
  
  #endif // SHARE_RUNTIME_DEOPTIMIZATION_HPP
< prev index next >