summaryrefslogtreecommitdiffstats
path: root/runtime/gc/collector/mark_sweep.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-02-28 16:48:42 -0800
committerMathieu Chartier <mathieuc@google.com>2014-03-06 15:38:06 -0800
commita5f9de040a7a740b7b4979bc8d47f95eb05718ae (patch)
treea06560b27a6e2ec1e7c90b3b8f0f1f6344f09c81 /runtime/gc/collector/mark_sweep.cc
parentc7a8981098646b4e255d9ede1f3798023bac6e84 (diff)
downloadart-a5f9de040a7a740b7b4979bc8d47f95eb05718ae.zip
art-a5f9de040a7a740b7b4979bc8d47f95eb05718ae.tar.gz
art-a5f9de040a7a740b7b4979bc8d47f95eb05718ae.tar.bz2
Defer heap transitions to heap trimming daemon.
This fixes the case where quick back and forth process state changes would cause a lot of heap transitions. Change-Id: Ia5be792edcf26079b2aa23b9c115f6b0a9a39a1c
Diffstat (limited to 'runtime/gc/collector/mark_sweep.cc')
-rw-r--r--runtime/gc/collector/mark_sweep.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/gc/collector/mark_sweep.cc b/runtime/gc/collector/mark_sweep.cc
index 4aff68a..71424bd 100644
--- a/runtime/gc/collector/mark_sweep.cc
+++ b/runtime/gc/collector/mark_sweep.cc
@@ -1347,9 +1347,6 @@ void MarkSweep::FinishPhase() {
timings_.NewSplit("PostGcVerification");
heap->PostGcVerification(this);
- timings_.NewSplit("RequestHeapTrim");
- heap->RequestHeapTrim();
-
// Update the cumulative statistics
total_freed_objects_ += GetFreedObjects() + GetFreedLargeObjects();
total_freed_bytes_ += GetFreedBytes() + GetFreedLargeObjectBytes();