mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -397,6 +397,7 @@ class ClassLoader: AllStatic {
|
|||
static int compute_Object_vtable();
|
||||
|
||||
static ClassPathEntry* classpath_entry(int n) {
|
||||
assert(n >= 0 && n < _num_entries, "sanity");
|
||||
if (n == 0) {
|
||||
assert(has_jrt_entry(), "No class path entry at 0 for exploded module builds");
|
||||
return ClassLoader::_jrt_entry;
|
||||
|
@ -415,6 +416,10 @@ class ClassLoader: AllStatic {
|
|||
}
|
||||
}
|
||||
|
||||
static int number_of_classpath_entries() {
|
||||
return _num_entries;
|
||||
}
|
||||
|
||||
static bool is_in_patch_mod_entries(Symbol* module_name);
|
||||
|
||||
#if INCLUDE_CDS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue