Skip to content

Commit a32dd87

Browse files
authored
Merge pull request eclipse-openj9#20882 from thallium/jfr-class-loading-stats
Add unloaded anonClass count to JFR ClassLoadingStatistics
2 parents 8b21775 + 0c7bc97 commit a32dd87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: runtime/vm/jfr.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,9 @@ jfrClassLoadingStatistics(J9VMThread *currentThread)
980980
initializeEventFields(currentThread, (J9JFREvent *)jfrEvent, J9JFR_EVENT_TYPE_CLASS_LOADING_STATISTICS);
981981

982982
UDATA unloadedClassCount = 0;
983-
vm->memoryManagerFunctions->j9gc_get_cumulative_class_unloading_stats(currentThread, NULL, &unloadedClassCount, NULL);
984-
jfrEvent->unloadedClassCount = (I_64)unloadedClassCount;
983+
UDATA unloadedAnonClassCount = 0;
984+
vm->memoryManagerFunctions->j9gc_get_cumulative_class_unloading_stats(currentThread, &unloadedAnonClassCount, &unloadedClassCount, NULL);
985+
jfrEvent->unloadedClassCount = (I_64)(unloadedClassCount + unloadedAnonClassCount);
985986

986987
internalReleaseVMAccess(currentThread);
987988

0 commit comments

Comments
 (0)