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
|
@ -142,6 +142,9 @@ class InstanceKlass: public Klass {
|
|||
static InstanceKlass* allocate_instance_klass(const ClassFileParser& parser, TRAPS);
|
||||
|
||||
protected:
|
||||
// If you add a new field that points to any metaspace object, you
|
||||
// must add this field to InstanceKlass::metaspace_pointers_do().
|
||||
|
||||
// Annotations for this class
|
||||
Annotations* _annotations;
|
||||
// Package this class is defined in
|
||||
|
@ -1341,6 +1344,8 @@ public:
|
|||
// JVMTI support
|
||||
jint jvmti_class_status() const;
|
||||
|
||||
virtual void metaspace_pointers_do(MetaspaceClosure* iter);
|
||||
|
||||
public:
|
||||
// Printing
|
||||
#ifndef PRODUCT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue