hotspot/src/share/vm/memory/filemap.hpp
changeset 41739 4a4b9f6a4306
parent 41281 e1dc38ba642f
child 42876 ff8ff9dcccec
equal deleted inserted replaced
41728:e660909cbbd4 41739:4a4b9f6a4306
   281 
   281 
   282   static void allocate_classpath_entry_table();
   282   static void allocate_classpath_entry_table();
   283   bool validate_classpath_entry_table();
   283   bool validate_classpath_entry_table();
   284 
   284 
   285   static SharedClassPathEntry* shared_classpath(int index) {
   285   static SharedClassPathEntry* shared_classpath(int index) {
       
   286     if (index < 0) {
       
   287       return NULL;
       
   288     }
   286     char* p = (char*)_classpath_entry_table;
   289     char* p = (char*)_classpath_entry_table;
   287     p += _classpath_entry_size * index;
   290     p += _classpath_entry_size * index;
   288     return (SharedClassPathEntry*)p;
   291     return (SharedClassPathEntry*)p;
   289   }
   292   }
   290   static const char* shared_classpath_name(int index) {
   293   static const char* shared_classpath_name(int index) {
       
   294     assert(index >= 0, "Sanity");
   291     return shared_classpath(index)->_name;
   295     return shared_classpath(index)->_name;
   292   }
   296   }
   293 
   297 
   294   static int get_number_of_share_classpaths() {
   298   static int get_number_of_share_classpaths() {
   295     return _classpath_entry_table_size;
   299     return _classpath_entry_table_size;