summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/gc/heap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc
index a2453b8405..b4d149097a 100644
--- a/runtime/gc/heap.cc
+++ b/runtime/gc/heap.cc
@@ -1268,7 +1268,7 @@ collector::GcType Heap::CollectGarbageInternal(collector::GcType gc_type, GcCaus
}
}
- if (was_slow) {
+ if (was_slow && care_about_pause_times_) {
const size_t percent_free = GetPercentFree();
const size_t current_heap_size = GetBytesAllocated();
const size_t total_memory = GetTotalMemory();