summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2014-01-13 12:30:44 -0800
committerHiroshi Yamauchi <yamauchi@google.com>2014-01-14 13:34:59 -0800
commit6f4ffe41649f1e6381e8cda087ad3749206806e5 (patch)
tree9848617f37fbe418e59af21a5c204e7b2669a0cc /runtime/runtime.cc
parent89b7ab4cc6e5372bb4dabcc06a907fc333eca3f6 (diff)
downloadart-6f4ffe41649f1e6381e8cda087ad3749206806e5.zip
art-6f4ffe41649f1e6381e8cda087ad3749206806e5.tar.gz
art-6f4ffe41649f1e6381e8cda087ad3749206806e5.tar.bz2
Improve the generational mode.
- Turn the compile-time flags for generational mode into a command line flag. - In the generational mode, always collect the whole heap, as opposed to the bump pointer space only, if a collection is an explicit, native allocation-triggered or last attempt one. Change-Id: I7a14a707cc47e6e3aa4a3292db62533409f17563
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 91d9b94..3cdf289 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -367,6 +367,8 @@ static gc::CollectorType ParseCollectorType(const std::string& option) {
collector_type = gc::kCollectorTypeCMS;
} else if (gc_options[i] == "SS") {
collector_type = gc::kCollectorTypeSS;
+ } else if (gc_options[i] == "GSS") {
+ collector_type = gc::kCollectorTypeGSS;
} else {
LOG(WARNING) << "Ignoring unknown -Xgc option: " << gc_options[i];
return gc::kCollectorTypeNone;
@@ -399,7 +401,8 @@ Runtime::ParsedOptions* Runtime::ParsedOptions::Create(const Options& options, b
// Only the main GC thread, no workers.
parsed->conc_gc_threads_ = 0;
// Default is CMS which is Sticky + Partial + Full CMS GC.
- parsed->collector_type_ = gc::kCollectorTypeCMS;
+ // parsed->collector_type_ = gc::kCollectorTypeCMS;
+ parsed->collector_type_ = gc::kCollectorTypeGSS;
// If background_collector_type_ is kCollectorTypeNone, it defaults to the collector_type_ after
// parsing options.
parsed->background_collector_type_ = gc::kCollectorTypeNone;