hotspot/src/share/vm/runtime/interfaceSupport.hpp
changeset 34285 0b07014c15e9
parent 33063 9e222337a81e
child 34633 2a6c7c7b30a7
equal deleted inserted replaced
34277:d457b9400c99 34285:0b07014c15e9
    72   static long _scavenge_alot_counter;
    72   static long _scavenge_alot_counter;
    73   static long _fullgc_alot_counter;
    73   static long _fullgc_alot_counter;
    74   static long _number_of_calls;
    74   static long _number_of_calls;
    75   static long _fullgc_alot_invocation;
    75   static long _fullgc_alot_invocation;
    76 
    76 
    77   // tracing
       
    78   static void trace(const char* result_type, const char* header);
       
    79 
       
    80   // Helper methods used to implement +ScavengeALot and +FullGCALot
    77   // Helper methods used to implement +ScavengeALot and +FullGCALot
    81   static void check_gc_alot() { if (ScavengeALot || FullGCALot) gc_alot(); }
    78   static void check_gc_alot() { if (ScavengeALot || FullGCALot) gc_alot(); }
    82   static void gc_alot();
    79   static void gc_alot();
    83 
    80 
    84   static void walk_stack_from(vframe* start_vf);
    81   static void walk_stack_from(vframe* start_vf);
   400    RuntimeHistogramElement(const char* name);
   397    RuntimeHistogramElement(const char* name);
   401 };
   398 };
   402 
   399 
   403 #define TRACE_CALL(result_type, header)                            \
   400 #define TRACE_CALL(result_type, header)                            \
   404   InterfaceSupport::_number_of_calls++;                            \
   401   InterfaceSupport::_number_of_calls++;                            \
   405   if (TraceRuntimeCalls)                                           \
       
   406     InterfaceSupport::trace(#result_type, #header);                \
       
   407   if (CountRuntimeCalls) {                                         \
   402   if (CountRuntimeCalls) {                                         \
   408     static RuntimeHistogramElement* e = new RuntimeHistogramElement(#header); \
   403     static RuntimeHistogramElement* e = new RuntimeHistogramElement(#header); \
   409     if (e != NULL) e->increment_count();                           \
   404     if (e != NULL) e->increment_count();                           \
   410   }
   405   }
   411 #else
   406 #else