< prev index next >
src/share/vm/classfile/classLoader.hpp
Print this page
*** 393,402 ****
--- 393,403 ----
CDS_ONLY(static void initialize_shared_path();)
static int compute_Object_vtable();
static ClassPathEntry* classpath_entry(int n) {
+ assert(n >= 0 && n < _num_entries, "sanity");
if (n == 0) {
assert(has_jrt_entry(), "No class path entry at 0 for exploded module builds");
return ClassLoader::_jrt_entry;
} else {
// The java runtime image is always the first entry
*** 411,420 ****
--- 412,425 ----
}
return e;
}
}
+ static int number_of_classpath_entries() {
+ return _num_entries;
+ }
+
static bool is_in_patch_mod_entries(Symbol* module_name);
#if INCLUDE_CDS
// Sharing dump and restore
< prev index next >