Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8248273: Small clean up for PerfClassTraceTime
Browse files Browse the repository at this point in the history
Remove the unused code.

Reviewed-by: dholmes, redestad
  • Loading branch information
Harold Seigel committed Jun 29, 2020
1 parent 48c0ce3 commit 55bbaf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
14 changes: 5 additions & 9 deletions src/hotspot/share/classfile/classLoader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
};
Expand Down
5 changes: 3 additions & 2 deletions src/hotspot/share/services/threadService.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 55bbaf1

Please sign in to comment.