-
Enhancement
-
Resolution: Fixed
-
P4
-
17, 21, 22
-
b20
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8320775 | 21.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b09 |
The vmtimer in the following is not measuring anything; its scope should be expanded to measure the entire function.
InstanceKlass* UnregisteredClasses::load_class(Symbol* name, const char* path, TRAPS) {
assert(name != nullptr, "invariant");
assert(DumpSharedSpaces, "this function is only used with -Xshare:dump");
{
PerfClassTraceTime vmtimer(ClassLoader::perf_sys_class_lookup_time(),
THREAD->get_thread_stat()->perf_timers_addr(),
PerfClassTraceTime::CLASS_LOAD);
}
InstanceKlass* UnregisteredClasses::load_class(Symbol* name, const char* path, TRAPS) {
assert(name != nullptr, "invariant");
assert(DumpSharedSpaces, "this function is only used with -Xshare:dump");
{
PerfClassTraceTime vmtimer(ClassLoader::perf_sys_class_lookup_time(),
THREAD->get_thread_stat()->perf_timers_addr(),
PerfClassTraceTime::CLASS_LOAD);
}
- backported by
-
JDK-8320775 Correct the scope of vmtimer in UnregisteredClasses::load_class
- Resolved