--- old/src/hotspot/share/classfile/packageEntry.hpp 2020-08-12 15:00:49.128238598 -0700 +++ new/src/hotspot/share/classfile/packageEntry.hpp 2020-08-12 15:00:48.872228961 -0700 @@ -36,6 +36,7 @@ #include "jfr/support/jfrTraceIdExtension.hpp" #endif +template class Array; // A PackageEntry basically represents a Java package. It contains: // - Symbol* containing the package's name. @@ -217,6 +218,13 @@ void print(outputStream* st = tty); void verify(); +#if INCLUDE_CDS_JAVA_HEAP + PackageEntry* allocate_archived_entry() const; + void init_as_archived_entry(); + static PackageEntry* get_archived_entry(PackageEntry* orig_entry); + void load_from_archive(); +#endif + static int max_index_for_defined_in_class_path() { return sizeof(int) * BitsPerByte; } @@ -295,6 +303,12 @@ void print(outputStream* st = tty); void verify(); + +#if INCLUDE_CDS_JAVA_HEAP + Array* allocate_archived_entries(); + void init_archived_entries(Array* archived_packages); + void load_archived_entries(Array* archived_packages); +#endif }; #endif // SHARE_CLASSFILE_PACKAGEENTRY_HPP