< prev index next >

src/hotspot/share/cds/archiveUtils.hpp

Print this page
*** 34,10 ***
--- 34,13 ---
  
  class BootstrapInfo;
  class ReservedSpace;
  class VirtualSpace;
  
+ template<class E> class Array;
+ template<class E> class GrowableArray;
+ 
  // ArchivePtrMarker is used to mark the location of pointers embedded in a CDS archive. E.g., when an
  // InstanceKlass k is dumped, we mark the location of the k->_name pointer by effectively calling
  // mark_pointer(/*ptr_loc=*/&k->_name). It's required that (_prt_base <= ptr_loc < _ptr_end). _ptr_base is
  // fixed, but _ptr_end can be expanded as more objects are dumped.
  class ArchivePtrMarker : AllStatic {

*** 230,8 ***
--- 233,19 ---
  };
  
  class ArchiveUtils {
  public:
    static void log_to_classlist(BootstrapInfo* bootstrap_specifier, TRAPS) NOT_CDS_RETURN;
+ 
+   template <typename T> static Array<T>* archive_array(GrowableArray<T>* tmp_array);
+ 
+   // Used in logging: "boot", "boot2", "plat", "app" and "unreg";
+   static const char* class_category(Klass* k);
+ 
+   static const char* builtin_loader_name_or_null(oop loader); // "boot", "platform", "app", or nullptr
+   static const char* builtin_loader_name(oop loader); // "boot", "platform", or "app". Asserts if not a built-in-loader.
+ 
+   static bool builtin_loader_from_type(const char* loader_type, oop* value_ret);
+   static oop builtin_loader_from_type(int loader_type);
  };
  
  #endif // SHARE_CDS_ARCHIVEUTILS_HPP
< prev index next >