mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8072061: Automatically determine optimal sizes for the CDS regions
See new C++ class MetaspaceClosure. Reviewed-by: coleenp, jiangli, mseledtsov
This commit is contained in:
parent
4b983a51fd
commit
f7f193ae71
82 changed files with 2010 additions and 1622 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "gc/shared/collectedHeap.inline.hpp"
|
||||
#include "gc/shared/gcLocker.hpp"
|
||||
#include "jvmtifiles/jvmti.h"
|
||||
#include "memory/metaspaceClosure.hpp"
|
||||
#include "memory/resourceArea.hpp"
|
||||
#include "memory/universe.inline.hpp"
|
||||
#include "oops/arrayKlass.hpp"
|
||||
|
@ -173,6 +174,17 @@ jint ArrayKlass::jvmti_class_status() const {
|
|||
return JVMTI_CLASS_STATUS_ARRAY;
|
||||
}
|
||||
|
||||
void ArrayKlass::metaspace_pointers_do(MetaspaceClosure* it) {
|
||||
Klass::metaspace_pointers_do(it);
|
||||
|
||||
ResourceMark rm;
|
||||
log_trace(cds)("Iter(ArrayKlass): %p (%s)", this, external_name());
|
||||
|
||||
// need to cast away volatile
|
||||
it->push((Klass**)&_higher_dimension);
|
||||
it->push((Klass**)&_lower_dimension);
|
||||
}
|
||||
|
||||
void ArrayKlass::remove_unshareable_info() {
|
||||
Klass::remove_unshareable_info();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue