mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8248273: Small clean up for PerfClassTraceTime
Remove the unused code. Reviewed-by: dholmes, redestad
This commit is contained in:
parent
48c0ce3b4b
commit
55bbaf1ae1
2 changed files with 8 additions and 11 deletions
|
@ -441,12 +441,11 @@ class PerfClassTraceTime {
|
|||
public:
|
||||
enum {
|
||||
CLASS_LOAD = 0,
|
||||
PARSE_CLASS = 1,
|
||||
CLASS_LINK = 2,
|
||||
CLASS_VERIFY = 3,
|
||||
CLASS_CLINIT = 4,
|
||||
DEFINE_CLASS = 5,
|
||||
EVENT_TYPE_COUNT = 6
|
||||
CLASS_LINK = 1,
|
||||
CLASS_VERIFY = 2,
|
||||
CLASS_CLINIT = 3,
|
||||
DEFINE_CLASS = 4,
|
||||
EVENT_TYPE_COUNT = 5
|
||||
};
|
||||
protected:
|
||||
// _t tracks time from initialization to destruction of this timer instance
|
||||
|
@ -484,9 +483,6 @@ class PerfClassTraceTime {
|
|||
initialize();
|
||||
}
|
||||
|
||||
inline void suspend() { _t.stop(); _timers[_event_type].stop(); }
|
||||
inline void resume() { _t.start(); _timers[_event_type].start(); }
|
||||
|
||||
~PerfClassTraceTime();
|
||||
void initialize();
|
||||
};
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#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"
|
||||
|
@ -140,8 +141,8 @@ private:
|
|||
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue