mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 09:04:41 +02:00
8259070: Add jcmd option to dump CDS
Reviewed-by: ccheung, iklam, mli
This commit is contained in:
parent
593194864a
commit
e7cbeba866
23 changed files with 800 additions and 75 deletions
|
@ -777,19 +777,6 @@ ClassPathZipEntry* ClassLoader::create_class_path_zip_entry(const char *path, bo
|
|||
return NULL;
|
||||
}
|
||||
|
||||
// returns true if entry already on class path
|
||||
bool ClassLoader::contains_append_entry(const char* name) {
|
||||
ClassPathEntry* e = first_append_entry();
|
||||
while (e != NULL) {
|
||||
// assume zip entries have been canonicalized
|
||||
if (strcmp(name, e->name()) == 0) {
|
||||
return true;
|
||||
}
|
||||
e = e->next();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// The boot append entries are added with a lock, and read lock free.
|
||||
void ClassLoader::add_to_boot_append_entries(ClassPathEntry *new_entry) {
|
||||
if (new_entry != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue