diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-04-07 10:39:04 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-04-07 10:42:46 -0700 |
commit | 4809d0a8a5fca85a67dd0588ead5dfbd0f1acf96 (patch) | |
tree | 12853aa2c6a6238cac7c66b5d5610735a2f31591 /runtime/thread.cc | |
parent | 63a99fce3ceac3c9de1f47b88a75094e3e1ffba3 (diff) | |
download | art-4809d0a8a5fca85a67dd0588ead5dfbd0f1acf96.tar.gz art-4809d0a8a5fca85a67dd0588ead5dfbd0f1acf96.tar.bz2 art-4809d0a8a5fca85a67dd0588ead5dfbd0f1acf96.zip |
Fix CC root visiting bug
Also some cleanup.
Change-Id: Ia3de8f2d409770be3619ec116e8b06ecd82338fe
Diffstat (limited to 'runtime/thread.cc')
-rw-r--r-- | runtime/thread.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/thread.cc b/runtime/thread.cc index 79d2b13e8..d1b046490 100644 --- a/runtime/thread.cc +++ b/runtime/thread.cc @@ -1385,7 +1385,8 @@ bool Thread::HandleScopeContains(jobject obj) const { } void Thread::HandleScopeVisitRoots(RootVisitor* visitor, uint32_t thread_id) { - BufferedRootVisitor<128> buffered_visitor(visitor, RootInfo(kRootNativeStack, thread_id)); + BufferedRootVisitor<kDefaultBufferedRootCount> buffered_visitor( + visitor, RootInfo(kRootNativeStack, thread_id)); for (HandleScope* cur = tlsPtr_.top_handle_scope; cur; cur = cur->GetLink()) { for (size_t j = 0, count = cur->NumberOfReferences(); j < count; ++j) { buffered_visitor.VisitRootIfNonNull(cur->GetHandle(j).GetReference()); |