From fd2a078bd953432fc602850283afcccbd485fb17 Mon Sep 17 00:00:00 2001 From: Calvin Cheung Date: Mon, 16 Oct 2023 18:17:40 +0000 Subject: [PATCH] use perf_app_classload_time --- src/hotspot/share/cds/unregisteredClasses.cpp | 2 +- src/hotspot/share/classfile/classLoader.hpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hotspot/share/cds/unregisteredClasses.cpp b/src/hotspot/share/cds/unregisteredClasses.cpp index b0bcc7259de70..06d006ea1bb97 100644 --- a/src/hotspot/share/cds/unregisteredClasses.cpp +++ b/src/hotspot/share/cds/unregisteredClasses.cpp @@ -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); diff --git a/src/hotspot/share/classfile/classLoader.hpp b/src/hotspot/share/classfile/classLoader.hpp index 5237e05b4b86a..263296d80f0ba 100644 --- a/src/hotspot/share/classfile/classLoader.hpp +++ b/src/hotspot/share/classfile/classLoader.hpp @@ -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; }