Skip to content

Commit

Permalink
use perf_app_classload_time
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinccheung committed Oct 16, 2023
1 parent 321bde5 commit fd2a078
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/cds/unregisteredClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ InstanceKlass* UnregisteredClasses::load_class(Symbol* name, const char* path, T
assert(name != nullptr, "invariant");
assert(DumpSharedSpaces, "this function is only used with -Xshare:dump");

PerfClassTraceTime vmtimer(ClassLoader::perf_sys_class_lookup_time(),
PerfClassTraceTime vmtimer(ClassLoader::perf_app_classload_time(),
THREAD->get_thread_stat()->perf_timers_addr(),
PerfClassTraceTime::CLASS_LOAD);

Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/classfile/classLoader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ class ClassLoader: AllStatic {
static PerfCounter* perf_classes_linked() { return _perf_classes_linked; }
static PerfCounter* perf_class_link_time() { return _perf_class_link_time; }
static PerfCounter* perf_class_link_selftime() { return _perf_class_link_selftime; }
static PerfCounter* perf_sys_class_lookup_time() { return _perf_sys_class_lookup_time; }
static PerfCounter* perf_shared_classload_time() { return _perf_shared_classload_time; }
static PerfCounter* perf_sys_classload_time() { return _perf_sys_classload_time; }
static PerfCounter* perf_app_classload_time() { return _perf_app_classload_time; }
Expand Down

0 comments on commit fd2a078

Please sign in to comment.