summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2013-09-26 14:21:22 -0700
committerHiroshi Yamauchi <yamauchi@google.com>2013-11-16 21:35:03 -0800
commitcf58d4adf461eb9b8e84baa8019054c88cd8acc6 (patch)
treec49fa473b17e299bc649688076e7d69938741e4e /runtime/runtime.cc
parentbe56c9e63335ce99f1042e8660aeac4690b965a9 (diff)
downloadart-cf58d4adf461eb9b8e84baa8019054c88cd8acc6.zip
art-cf58d4adf461eb9b8e84baa8019054c88cd8acc6.tar.gz
art-cf58d4adf461eb9b8e84baa8019054c88cd8acc6.tar.bz2
A custom 'runs-of-slots' memory allocator.
Bug: 9986565 Change-Id: I0eb73b9458752113f519483616536d219d5f798b
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 8e39023..08c0ba0 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -124,6 +124,11 @@ Runtime::~Runtime() {
heap_->WaitForGcToComplete(self);
heap_->DeleteThreadPool();
+ // For RosAlloc, revoke thread local runs. Note that in tests
+ // (common_test.h) we repeat allocating and deleting Runtime
+ // objects.
+ heap_->RevokeAllThreadLocalBuffers();
+
// Make sure our internal threads are dead before we start tearing down things they're using.
Dbg::StopJdwp();
delete signal_catcher_;