mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8276184: Exclude lambda proxy class from the CDS archive if its caller class is excluded
Reviewed-by: iklam, dholmes
This commit is contained in:
parent
a59c9b2ac2
commit
bd92674be5
14 changed files with 511 additions and 68 deletions
|
@ -2598,6 +2598,11 @@ void InstanceKlass::restore_unshareable_info(ClassLoaderData* loader_data, Handl
|
|||
// retrieved during dump time.
|
||||
// Verification of archived old classes will be performed during run time.
|
||||
bool InstanceKlass::can_be_verified_at_dumptime() const {
|
||||
if (MetaspaceShared::is_in_shared_metaspace(this)) {
|
||||
// This is a class that was dumped into the base archive, so we know
|
||||
// it was verified at dump time.
|
||||
return true;
|
||||
}
|
||||
if (major_version() < 50 /*JAVA_6_VERSION*/) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue