diff options
author | 2016-10-11 16:52:17 -0700 | |
---|---|---|
committer | 2016-10-12 13:30:54 -0700 | |
commit | e8a3c576301fd531d5f73a65fc8b84a63619d580 (patch) | |
tree | a00e488f153505ee890c28873308d373e6ab231b /runtime/debugger.cc | |
parent | e8317d90c61dde07c12e404a2bc1fabf584905c1 (diff) |
Replace StackHandleScopeCollection with VariableSizedHandleScope
VariableSizedHandleScope's internal handle scopes are not pushed
directly on the thread. This means that it is safe to intermix with
other types of handle scopes.
Added test.
Test: clean-oat-host && test-art-host
Change-Id: Id2fd1155788428f394d49615d337d9134824c8f0
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r-- | runtime/debugger.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index d8a6ba9f7f..502ce4b76d 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -892,7 +892,7 @@ JDWP::JdwpError Dbg::GetInstanceCounts(const std::vector<JDWP::RefTypeId>& class std::vector<uint64_t>* counts) { gc::Heap* heap = Runtime::Current()->GetHeap(); heap->CollectGarbage(false); - StackHandleScopeCollection hs(Thread::Current()); + VariableSizedHandleScope hs(Thread::Current()); std::vector<Handle<mirror::Class>> classes; counts->clear(); for (size_t i = 0; i < class_ids.size(); ++i) { |