diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-02-28 16:48:42 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-03-06 15:38:06 -0800 |
commit | a5f9de040a7a740b7b4979bc8d47f95eb05718ae (patch) | |
tree | a06560b27a6e2ec1e7c90b3b8f0f1f6344f09c81 /runtime/gc/collector/mark_sweep.cc | |
parent | c7a8981098646b4e255d9ede1f3798023bac6e84 (diff) | |
download | art-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.cc | 3 |
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(); |