Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8248273: Small clean up for PerfClassTraceTime
Remove the unused code.

Reviewed-by: dholmes, redestad
  • Loading branch information
Harold Seigel committed Jun 29, 2020
1 parent 48c0ce3 commit 55bbaf1ae12dd7f9e98ecba42ae759f4f7a35155
Show file tree
Hide file tree
Showing 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 @@ class ThreadStatistics : public CHeapObj<mtInternal> {
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() {

0 comments on commit 55bbaf1

Please sign in to comment.