When running -Xlog:aot+map with an existing AOT cache, the unregistered classes are missing from the output.
Fix suggested by [~asmehra]
diff --git a/src/hotspot/share/classfile/systemDictionaryShared.cpp b/src/hotspot/share/classfile/systemDictionaryShared.cpp
index b092e71f4e7..7e71dbefbfb 100644
--- a/src/hotspot/share/classfile/systemDictionaryShared.cpp
+++ b/src/hotspot/share/classfile/systemDictionaryShared.cpp
@@ -1420,6 +1420,9 @@ void SystemDictionaryShared::get_all_archived_classes(bool is_static_archive, Gr
get_archive(is_static_archive)->_builtin_dictionary.iterate([&] (const RunTimeClassInfo* record) {
classes->append(record->klass());
});
+ get_archive(is_static_archive)->_unregistered_dictionary.iterate([&] (const RunTimeClassInfo* record) {
+ classes->append(record->klass());
+ });
}
Fix suggested by [~asmehra]
diff --git a/src/hotspot/share/classfile/systemDictionaryShared.cpp b/src/hotspot/share/classfile/systemDictionaryShared.cpp
index b092e71f4e7..7e71dbefbfb 100644
--- a/src/hotspot/share/classfile/systemDictionaryShared.cpp
+++ b/src/hotspot/share/classfile/systemDictionaryShared.cpp
@@ -1420,6 +1420,9 @@ void SystemDictionaryShared::get_all_archived_classes(bool is_static_archive, Gr
get_archive(is_static_archive)->_builtin_dictionary.iterate([&] (const RunTimeClassInfo* record) {
classes->append(record->klass());
});
+ get_archive(is_static_archive)->_unregistered_dictionary.iterate([&] (const RunTimeClassInfo* record) {
+ classes->append(record->klass());
+ });
}
- relates to
-
JDK-8362566 Use -Xlog:aot+map to print contents of existing AOT cache
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/bd731564
-
Review(master)
openjdk/jdk/27828