diff options
| author | 2021-08-27 15:01:26 +0800 | |
|---|---|---|
| committer | 2021-09-01 04:43:58 +0000 | |
| commit | 4ae09d45271f1646b54c8f50859bcd88b7e844f7 (patch) | |
| tree | 38af02a794db244870d197d7209b395e03a7f236 | |
| parent | 17af7a80b8ef2ddeef8d29eeb7349107d4ff3ff1 (diff) | |
Fix unused collector_type_ variable
Test: build
Bug: 197240255
Change-Id: I321f47b1a037da61df2bef1c4b08bdbe23efec0d
| -rw-r--r-- | runtime/parsed_options.cc | 11 | 
1 files changed, 1 insertions, 10 deletions
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc index f27947ee47..f973ebdddd 100644 --- a/runtime/parsed_options.cc +++ b/runtime/parsed_options.cc @@ -699,18 +699,9 @@ bool ParsedOptions::DoParse(const RuntimeOptions& options,      // If not set, background collector type defaults to homogeneous compaction.      // If not low memory mode, semispace otherwise. -    gc::CollectorType background_collector_type_; -    gc::CollectorType collector_type_ = (XGcOption{}).collector_type_; +    gc::CollectorType background_collector_type_ = args.GetOrDefault(M::BackgroundGc);      bool low_memory_mode_ = args.Exists(M::LowMemoryMode); -    background_collector_type_ = args.GetOrDefault(M::BackgroundGc); -    { -      XGcOption* xgc = args.Get(M::GcOption); -      if (xgc != nullptr && xgc->collector_type_ != gc::kCollectorTypeNone) { -        collector_type_ = xgc->collector_type_; -      } -    } -      if (background_collector_type_ == gc::kCollectorTypeNone) {        background_collector_type_ = low_memory_mode_ ?            gc::kCollectorTypeSS : gc::kCollectorTypeHomogeneousSpaceCompact;  |