Print this page
rev 6864 : 8061651: Interface to the Lookup Index Cache to improve URLClassPath search time
Summary: Implemented the interface in sun.misc.URLClassPath and corresponding JVM_XXX APIs
Reviewed-by: mchung, acorn, jiangli, dholmes

Split Split Close
Expand all
Collapse all
          --- old/src/share/vm/classfile/classLoaderExt.hpp
          +++ new/src/share/vm/classfile/classLoaderExt.hpp
↓ open down ↓ 56 lines elided ↑ open up ↑
  57   57        }
  58   58      }
  59   59    };
  60   60  
  61   61  
  62   62    static void add_class_path_entry(const char* path, bool check_for_duplicates,
  63   63                                     ClassPathEntry* new_entry) {
  64   64      ClassLoader::add_to_list(new_entry);
  65   65    }
  66   66    static void setup_search_paths() {}
       67 +
       68 +  static void init_lookup_cache(TRAPS) {}
       69 +  static void copy_lookup_cache_to_archive(char** top, char* end) {}
       70 +  static char* restore_lookup_cache_from_archive(char* buffer) {return buffer;}
       71 +  static inline bool is_lookup_cache_enabled() {return false;}
       72 +
       73 +  static bool known_to_not_exist(JNIEnv *env, jobject loader, const char *classname, TRAPS) {return false;}
       74 +  static jobjectArray get_lookup_cache_urls(JNIEnv *env, jobject loader, TRAPS) {return NULL;}
       75 +  static jintArray get_lookup_cache(JNIEnv *env, jobject loader, const char *pkgname, TRAPS) {return NULL;}
  67   76  };
  68   77  
  69   78  #endif // SHARE_VM_CLASSFILE_CLASSLOADEREXT_HPP
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX