8202447: Fix unloading_occurred to mean unloading_occurred

Nmethod unloading does not need to test for jvmti to set unloading_occurred, nor do we need to clean weak Klasses in metadata if unloading does not occur.

Reviewed-by: sspitsyn, rehn
This commit is contained in:
Coleen Phillimore 2018-04-27 15:00:04 -04:00
parent 9353d59547
commit 204ba9a580
11 changed files with 32 additions and 53 deletions

View file

@ -2140,7 +2140,7 @@ void PSParallelCompact::marking_phase(ParCompactionManager* cm,
CodeCache::do_unloading(is_alive_closure(), purged_class);
// Prune dead klasses from subklass/sibling/implementor lists.
Klass::clean_weak_klass_links();
Klass::clean_weak_klass_links(purged_class);
}
{