comparison src/share/vm/oops/klass.hpp @ 7185:90273fc0a981

8000662: NPG: nashorn ant clean test262 out-of-memory with Java heap Summary: Add ClassLoaderData object for each anonymous class with metaspaces to allocate in. Reviewed-by: twisti, jrose, stefank
author coleenp
date Thu, 29 Nov 2012 16:50:29 -0500
parents 070d523b96a7
children 291ffc492eb6 30866cd626b0
comparison
equal deleted inserted replaced
7181:2fc0334f613a 7185:90273fc0a981
265 // sub/superklass links 265 // sub/superklass links
266 InstanceKlass* superklass() const; 266 InstanceKlass* superklass() const;
267 Klass* subklass() const; 267 Klass* subklass() const;
268 Klass* next_sibling() const; 268 Klass* next_sibling() const;
269 void append_to_sibling_list(); // add newly created receiver to superklass' subklass list 269 void append_to_sibling_list(); // add newly created receiver to superklass' subklass list
270 void remove_from_sibling_list(); // remove receiver from sibling list
271 270
272 void set_next_link(Klass* k) { _next_link = k; } 271 void set_next_link(Klass* k) { _next_link = k; }
273 Klass* next_link() const { return _next_link; } // The next klass defined by the class loader. 272 Klass* next_link() const { return _next_link; } // The next klass defined by the class loader.
274 273
275 // class loader data 274 // class loader data
579 TRACE_DEFINE_KLASS_METHODS; 578 TRACE_DEFINE_KLASS_METHODS;
580 579
581 // garbage collection support 580 // garbage collection support
582 virtual void oops_do(OopClosure* cl); 581 virtual void oops_do(OopClosure* cl);
583 582
584 // Checks if the class loader is alive. 583 // Iff the class loader (or mirror for anonymous classes) is alive the
585 // Iff the class loader is alive the Klass is considered alive. 584 // Klass is considered alive.
586 // The is_alive closure passed in depends on the Garbage Collector used. 585 // The is_alive closure passed in depends on the Garbage Collector used.
587 bool is_loader_alive(BoolObjectClosure* is_alive); 586 bool is_loader_alive(BoolObjectClosure* is_alive);
588 587
589 static void clean_weak_klass_links(BoolObjectClosure* is_alive); 588 static void clean_weak_klass_links(BoolObjectClosure* is_alive);
590 589