mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8261480: MetaspaceShared::preload_and_dump should check exceptions
Reviewed-by: dholmes, ccheung
This commit is contained in:
parent
81ba5784ba
commit
2b93ae0019
13 changed files with 263 additions and 262 deletions
|
@ -1268,14 +1268,7 @@ InstanceKlass* ClassLoader::load_class(Symbol* name, bool search_append_only, TR
|
|||
name,
|
||||
loader_data,
|
||||
cl_info,
|
||||
THREAD);
|
||||
if (HAS_PENDING_EXCEPTION) {
|
||||
if (DumpSharedSpaces) {
|
||||
log_error(cds)("Preload Error: Failed to load %s", class_name);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
CHECK_NULL);
|
||||
result->set_classpath_index(classpath_index);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue