blob: c0a6b6a59c6a6e3f5e36540d68a1723e838c3a11 [file] [log] [blame]
Mathieu Chartier0de9f732013-11-22 17:58:48 -08001/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ART_RUNTIME_GC_COLLECTOR_TYPE_H_
18#define ART_RUNTIME_GC_COLLECTOR_TYPE_H_
19
20#include <ostream>
21
22namespace art {
23namespace gc {
24
25// Which types of collections are able to be performed.
26enum CollectorType {
Mathieu Chartier7bf82af2013-12-06 16:51:45 -080027 // No collector selected.
28 kCollectorTypeNone,
Mathieu Chartier7410f292013-11-24 13:17:35 -080029 // Non concurrent mark-sweep.
Mathieu Chartier0de9f732013-11-22 17:58:48 -080030 kCollectorTypeMS,
Mathieu Chartier7410f292013-11-24 13:17:35 -080031 // Concurrent mark-sweep.
Mathieu Chartier0de9f732013-11-22 17:58:48 -080032 kCollectorTypeCMS,
Mathieu Chartier7410f292013-11-24 13:17:35 -080033 // Semi-space / mark-sweep hybrid, enables compaction.
Mathieu Chartier0de9f732013-11-22 17:58:48 -080034 kCollectorTypeSS,
Hiroshi Yamauchi6f4ffe42014-01-13 12:30:44 -080035 // A generational variant of kCollectorTypeSS.
36 kCollectorTypeGSS,
Mathieu Chartierd5a89ee2014-01-31 09:55:13 -080037 // Heap trimming collector, doesn't do any actual collecting.
38 kCollectorTypeHeapTrim,
Hiroshi Yamauchid5307ec2014-03-27 21:07:51 -070039 // A (mostly) concurrent copying collector.
40 kCollectorTypeCC,
Mathieu Chartier0de9f732013-11-22 17:58:48 -080041};
42std::ostream& operator<<(std::ostream& os, const CollectorType& collector_type);
43
44} // namespace gc
45} // namespace art
46
47#endif // ART_RUNTIME_GC_COLLECTOR_TYPE_H_