mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8267954: Shared classes that failed to load should not be loaded again
Reviewed-by: iklam, ccheung
This commit is contained in:
parent
991ca14279
commit
7ff6e7b2b1
7 changed files with 51 additions and 36 deletions
|
@ -2496,6 +2496,7 @@ void InstanceKlass::restore_unshareable_info(ClassLoaderData* loader_data, Handl
|
|||
// before the InstanceKlass is added to the SystemDictionary. Make
|
||||
// sure the current state is <loaded.
|
||||
assert(!is_loaded(), "invalid init state");
|
||||
assert(!shared_loading_failed(), "Must not try to load failed class again");
|
||||
set_package(loader_data, pkg_entry, CHECK);
|
||||
Klass::restore_unshareable_info(loader_data, protection_domain, CHECK);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue