mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8267431: Rename InstanceKlass::has_old_class_version to can_be_verified_at_dumptime
Reviewed-by: iklam
This commit is contained in:
parent
c519ba2e43
commit
de27da7ded
6 changed files with 13 additions and 13 deletions
|
@ -2402,7 +2402,7 @@ void InstanceKlass::metaspace_pointers_do(MetaspaceClosure* it) {
|
|||
|
||||
void InstanceKlass::remove_unshareable_info() {
|
||||
|
||||
if (has_old_class_version()) {
|
||||
if (can_be_verified_at_dumptime()) {
|
||||
// Set the old class bit.
|
||||
set_is_shared_old_klass();
|
||||
}
|
||||
|
@ -2546,17 +2546,17 @@ void InstanceKlass::restore_unshareable_info(ClassLoaderData* loader_data, Handl
|
|||
// without changing the old verifier, the verification constraint cannot be
|
||||
// retrieved during dump time.
|
||||
// Verification of archived old classes will be performed during run time.
|
||||
bool InstanceKlass::has_old_class_version() const {
|
||||
bool InstanceKlass::can_be_verified_at_dumptime() const {
|
||||
if (major_version() < 50 /*JAVA_6_VERSION*/) {
|
||||
return true;
|
||||
}
|
||||
if (java_super() != NULL && java_super()->has_old_class_version()) {
|
||||
if (java_super() != NULL && java_super()->can_be_verified_at_dumptime()) {
|
||||
return true;
|
||||
}
|
||||
Array<InstanceKlass*>* interfaces = local_interfaces();
|
||||
int len = interfaces->length();
|
||||
for (int i = 0; i < len; i++) {
|
||||
if (interfaces->at(i)->has_old_class_version()) {
|
||||
if (interfaces->at(i)->can_be_verified_at_dumptime()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue