8252149: Compilation error after JDK-8252043

Reviewed-by: hseigel
This commit is contained in:
Coleen Phillimore 2020-08-21 11:23:45 -04:00
parent e56002c7d3
commit fc0d883a13

View File

@ -586,7 +586,8 @@ void ClassLoaderDataGraph::purge(bool at_safepoint) {
// If we're purging metadata at a safepoint, clean remaining
// metaspaces if we need to.
if (at_safepoint) {
if (_should_clean_deallocate_lists || InstanceKlass::has_previous_versions()) {
_safepoint_cleanup_needed = true; // tested and reset next.
if (should_clean_metaspaces_and_reset()) {
walk_metadata_and_clean_metaspaces();
}
} else {