mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8261090: Store old classfiles in static CDS archive
Reviewed-by: iklam, minqi
This commit is contained in:
parent
159f5e1ede
commit
9499175064
29 changed files with 895 additions and 42 deletions
|
@ -2454,7 +2454,11 @@ void InstanceKlass::metaspace_pointers_do(MetaspaceClosure* it) {
|
|||
|
||||
it->push(&_annotations);
|
||||
it->push((Klass**)&_array_klasses);
|
||||
it->push(&_constants);
|
||||
if (!is_rewritten()) {
|
||||
it->push(&_constants, MetaspaceClosure::_writable);
|
||||
} else {
|
||||
it->push(&_constants);
|
||||
}
|
||||
it->push(&_inner_classes);
|
||||
#if INCLUDE_JVMTI
|
||||
it->push(&_previous_versions);
|
||||
|
@ -2491,6 +2495,12 @@ void InstanceKlass::metaspace_pointers_do(MetaspaceClosure* it) {
|
|||
}
|
||||
|
||||
void InstanceKlass::remove_unshareable_info() {
|
||||
|
||||
if (MetaspaceShared::is_old_class(this)) {
|
||||
// Set the old class bit.
|
||||
set_is_shared_old_klass();
|
||||
}
|
||||
|
||||
Klass::remove_unshareable_info();
|
||||
|
||||
if (SystemDictionaryShared::has_class_failed_verification(this)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue