< prev index next >

src/hotspot/share/services/threadService.hpp

Print this page

        

@@ -23,10 +23,11 @@
  */
 
 #ifndef SHARE_SERVICES_THREADSERVICE_HPP
 #define SHARE_SERVICES_THREADSERVICE_HPP
 
+#include "classfile/classLoader.hpp"
 #include "classfile/javaClasses.hpp"
 #include "runtime/handles.hpp"
 #include "runtime/init.hpp"
 #include "runtime/jniHandles.hpp"
 #include "runtime/objectMonitor.hpp"

@@ -138,12 +139,12 @@
   // to update the statistics.
   bool         _count_pending_reset;
   bool         _timer_pending_reset;
 
   // Keep accurate times for potentially recursive class operations
-  int           _perf_recursion_counts[6];
-  elapsedTimer  _perf_timers[6];
+  int           _perf_recursion_counts[PerfClassTraceTime::EVENT_TYPE_COUNT];
+  elapsedTimer  _perf_timers[PerfClassTraceTime::EVENT_TYPE_COUNT];
 
   // utility functions
   void  check_and_reset_count()            {
                                              if (!_count_pending_reset) return;
                                              _contended_enter_count = 0;
< prev index next >