8248273: Small clean up for PerfClassTraceTime

Remove the unused code.

Reviewed-by: dholmes, redestad
This commit is contained in:
Harold Seigel 2020-06-29 12:28:55 +00:00
parent 48c0ce3b4b
commit 55bbaf1ae1
2 changed files with 8 additions and 11 deletions

View file

@ -441,12 +441,11 @@ class PerfClassTraceTime {
public: public:
enum { enum {
CLASS_LOAD = 0, CLASS_LOAD = 0,
PARSE_CLASS = 1, CLASS_LINK = 1,
CLASS_LINK = 2, CLASS_VERIFY = 2,
CLASS_VERIFY = 3, CLASS_CLINIT = 3,
CLASS_CLINIT = 4, DEFINE_CLASS = 4,
DEFINE_CLASS = 5, EVENT_TYPE_COUNT = 5
EVENT_TYPE_COUNT = 6
}; };
protected: protected:
// _t tracks time from initialization to destruction of this timer instance // _t tracks time from initialization to destruction of this timer instance
@ -484,9 +483,6 @@ class PerfClassTraceTime {
initialize(); initialize();
} }
inline void suspend() { _t.stop(); _timers[_event_type].stop(); }
inline void resume() { _t.start(); _timers[_event_type].start(); }
~PerfClassTraceTime(); ~PerfClassTraceTime();
void initialize(); void initialize();
}; };

View file

@ -25,6 +25,7 @@
#ifndef SHARE_SERVICES_THREADSERVICE_HPP #ifndef SHARE_SERVICES_THREADSERVICE_HPP
#define SHARE_SERVICES_THREADSERVICE_HPP #define SHARE_SERVICES_THREADSERVICE_HPP
#include "classfile/classLoader.hpp"
#include "classfile/javaClasses.hpp" #include "classfile/javaClasses.hpp"
#include "runtime/handles.hpp" #include "runtime/handles.hpp"
#include "runtime/init.hpp" #include "runtime/init.hpp"
@ -140,8 +141,8 @@ private:
bool _timer_pending_reset; bool _timer_pending_reset;
// Keep accurate times for potentially recursive class operations // Keep accurate times for potentially recursive class operations
int _perf_recursion_counts[6]; int _perf_recursion_counts[PerfClassTraceTime::EVENT_TYPE_COUNT];
elapsedTimer _perf_timers[6]; elapsedTimer _perf_timers[PerfClassTraceTime::EVENT_TYPE_COUNT];
// utility functions // utility functions
void check_and_reset_count() { void check_and_reset_count() {