mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8000662: NPG: nashorn ant clean test262 out-of-memory with Java heap
Add ClassLoaderData object for each anonymous class with metaspaces to allocate in. Reviewed-by: twisti, jrose, stefank
This commit is contained in:
parent
c00c803b89
commit
7aa43fc5d8
26 changed files with 365 additions and 249 deletions
|
@ -267,7 +267,6 @@ class Klass : public Metadata {
|
|||
Klass* subklass() const;
|
||||
Klass* next_sibling() const;
|
||||
void append_to_sibling_list(); // add newly created receiver to superklass' subklass list
|
||||
void remove_from_sibling_list(); // remove receiver from sibling list
|
||||
|
||||
void set_next_link(Klass* k) { _next_link = k; }
|
||||
Klass* next_link() const { return _next_link; } // The next klass defined by the class loader.
|
||||
|
@ -581,8 +580,8 @@ class Klass : public Metadata {
|
|||
// garbage collection support
|
||||
virtual void oops_do(OopClosure* cl);
|
||||
|
||||
// Checks if the class loader is alive.
|
||||
// Iff the class loader is alive the Klass is considered alive.
|
||||
// Iff the class loader (or mirror for anonymous classes) is alive the
|
||||
// Klass is considered alive.
|
||||
// The is_alive closure passed in depends on the Garbage Collector used.
|
||||
bool is_loader_alive(BoolObjectClosure* is_alive);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue