mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8243503: InstanceKlass::_array_name is not needed and leaks
Decrement the refcount for all Klass in class unloading. Reviewed-by: lfoltan, hseigel
This commit is contained in:
parent
05bf8dced5
commit
f8ab03fa04
6 changed files with 30 additions and 45 deletions
|
@ -94,6 +94,10 @@ bool Klass::is_subclass_of(const Klass* k) const {
|
|||
return false;
|
||||
}
|
||||
|
||||
void Klass::release_C_heap_structures() {
|
||||
if (_name != NULL) _name->decrement_refcount();
|
||||
}
|
||||
|
||||
bool Klass::search_secondary_supers(Klass* k) const {
|
||||
// Put some extra logic here out-of-line, before the search proper.
|
||||
// This cuts down the size of the inline method.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue