mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8248886: InstanceKlass::initialize_impl crashes with -XX:-UsePerfData after JDK-8246019
Reviewed-by: ccheung
This commit is contained in:
parent
28e219f038
commit
8170244a81
1 changed files with 3 additions and 1 deletions
|
@ -1169,7 +1169,9 @@ void InstanceKlass::initialize_impl(TRAPS) {
|
|||
call_class_initializer(THREAD);
|
||||
} else {
|
||||
// The elapsed time is so small it's not worth counting.
|
||||
ClassLoader::perf_classes_inited()->inc();
|
||||
if (UsePerfData) {
|
||||
ClassLoader::perf_classes_inited()->inc();
|
||||
}
|
||||
call_class_initializer(THREAD);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue