System.Mem: Add performMinorGC, performMajorGC (#8257)