summaryrefslogtreecommitdiff
path: root/src/native/dalvik_system_VMRuntime.cc
diff options
context:
space:
mode:
author Brian Carlstrom <bdc@google.com> 2012-08-21 14:20:03 -0700
committer Brian Carlstrom <bdc@google.com> 2012-08-21 14:20:21 -0700
commitb18e77abdb06a443744fbb6589e0932fa89f6073 (patch)
tree0e77099cfedbbb13a1fee3c1b93c34305b447d1c /src/native/dalvik_system_VMRuntime.cc
parent22ad71521f3006b9bf344738c0276a501934fc01 (diff)
Switch art over to the new bionic dlmalloc 2.8.5 callback
Change-Id: I1314e87a51553fd358dbf9c44f804a7eb2de3a7d
Diffstat (limited to 'src/native/dalvik_system_VMRuntime.cc')
-rw-r--r--src/native/dalvik_system_VMRuntime.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/native/dalvik_system_VMRuntime.cc b/src/native/dalvik_system_VMRuntime.cc
index 8dbbc77cf6..33ece66e70 100644
--- a/src/native/dalvik_system_VMRuntime.cc
+++ b/src/native/dalvik_system_VMRuntime.cc
@@ -171,11 +171,7 @@ static void VMRuntime_trimHeap(JNIEnv*, jobject) {
heap->Trim(alloc_space);
// Trim the native heap.
dlmalloc_trim(0);
-#if 0 // TODO: switch over to this when bionic has moved to dlmalloc 2.8.5
dlmalloc_inspect_all(MspaceMadviseCallback, NULL);
-#else
- dlmalloc_walk_free_pages(MspaceMadviseCallback, NULL);
-#endif
LOG(INFO) << "Parallel heap trimming took " << PrettyDuration(NanoTime() - start_ns)
<< " on a " << PrettySize(alloc_space_size)
<< " alloc space with " << static_cast<int>(100 * utilization) << "% utilization";