Skip to content

Commit fde02e2

Browse files
committed
8254012: NMT: MetaspaceSnapshot::snapshot uses wrong enum
Reviewed-by: stuefe, rrich
1 parent 96a1f08 commit fde02e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/services/virtualMemoryTracker.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,8 @@ void MetaspaceSnapshot::snapshot(Metaspace::MetadataType type, MetaspaceSnapshot
678678
}
679679

680680
void MetaspaceSnapshot::snapshot(MetaspaceSnapshot& mss) {
681-
snapshot(Metaspace::ClassType, mss);
681+
snapshot(Metaspace::NonClassType, mss);
682682
if (Metaspace::using_class_space()) {
683-
snapshot(Metaspace::NonClassType, mss);
683+
snapshot(Metaspace::ClassType, mss);
684684
}
685685
}

0 commit comments

Comments
 (0)