8254012: NMT: MetaspaceSnapshot::snapshot uses wrong enum

Reviewed-by: stuefe, rrich
This commit is contained in:
Yumin Qi 2020-10-14 17:13:27 +00:00
parent 96a1f08e80
commit fde02e231b

View File

@ -678,8 +678,8 @@ void MetaspaceSnapshot::snapshot(Metaspace::MetadataType type, MetaspaceSnapshot
}
void MetaspaceSnapshot::snapshot(MetaspaceSnapshot& mss) {
snapshot(Metaspace::ClassType, mss);
snapshot(Metaspace::NonClassType, mss);
if (Metaspace::using_class_space()) {
snapshot(Metaspace::NonClassType, mss);
snapshot(Metaspace::ClassType, mss);
}
}