src/hotspot/share/classfile/classLoader.hpp
changeset 58447 319173c62caa
parent 57898 5ddb746d45e0
child 58486 dcb418f5aabd
equal deleted inserted replaced
58446:5c83830390ba 58447:319173c62caa
    24 
    24 
    25 #ifndef SHARE_CLASSFILE_CLASSLOADER_HPP
    25 #ifndef SHARE_CLASSFILE_CLASSLOADER_HPP
    26 #define SHARE_CLASSFILE_CLASSLOADER_HPP
    26 #define SHARE_CLASSFILE_CLASSLOADER_HPP
    27 
    27 
    28 #include "jimage.hpp"
    28 #include "jimage.hpp"
       
    29 #include "runtime/arguments.hpp"
    29 #include "runtime/handles.hpp"
    30 #include "runtime/handles.hpp"
    30 #include "runtime/perfData.hpp"
    31 #include "runtime/perfData.hpp"
    31 #include "utilities/exceptions.hpp"
    32 #include "utilities/exceptions.hpp"
    32 #include "utilities/macros.hpp"
    33 #include "utilities/macros.hpp"
    33 
    34 
   393   static int num_app_classpath_entries();
   394   static int num_app_classpath_entries();
   394 
   395 
   395   // Helper function used by CDS code to get the number of module path
   396   // Helper function used by CDS code to get the number of module path
   396   // entries during shared classpath setup time.
   397   // entries during shared classpath setup time.
   397   static int num_module_path_entries() {
   398   static int num_module_path_entries() {
   398     assert(DumpSharedSpaces || DynamicDumpSharedSpaces,
   399     Arguments::assert_is_dumping_archive();
   399            "Should only be called at CDS dump time");
       
   400     int num_entries = 0;
   400     int num_entries = 0;
   401     ClassPathEntry* e= ClassLoader::_module_path_entries;
   401     ClassPathEntry* e= ClassLoader::_module_path_entries;
   402     while (e != NULL) {
   402     while (e != NULL) {
   403       num_entries ++;
   403       num_entries ++;
   404       e = e->next();
   404       e = e->next();