diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-01-28 14:50:23 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-02-11 10:40:10 -0800 |
commit | 83c8ee000d525017ead8753fce6bc1020249b96a (patch) | |
tree | d5167ed15dee2629905ac3640b6ea0578d4ae312 /runtime/reference_table.cc | |
parent | 7cba217ab0661d74deccbb97160cdf60b74d4ea3 (diff) | |
download | art-83c8ee000d525017ead8753fce6bc1020249b96a.tar.gz art-83c8ee000d525017ead8753fce6bc1020249b96a.tar.bz2 art-83c8ee000d525017ead8753fce6bc1020249b96a.zip |
Add root types and thread id to root visiting.
Enables us to pass the root type and thread id to hprof.
Bug: 12680863
Change-Id: I6a0f1f9e3aa8f9b4033d695818ae7ca3460d67cb
Diffstat (limited to 'runtime/reference_table.cc')
-rw-r--r-- | runtime/reference_table.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/reference_table.cc b/runtime/reference_table.cc index b5ef735059..a9b17e0923 100644 --- a/runtime/reference_table.cc +++ b/runtime/reference_table.cc @@ -231,9 +231,10 @@ void ReferenceTable::Dump(std::ostream& os, const Table& entries) { DumpSummaryLine(os, sorted_entries.back(), GetElementCount(sorted_entries.back()), identical, equiv); } -void ReferenceTable::VisitRoots(RootVisitor* visitor, void* arg) { +void ReferenceTable::VisitRoots(RootCallback* visitor, void* arg, uint32_t tid, + RootType root_type) { for (auto& ref : entries_) { - ref = visitor(ref, arg); + ref = visitor(ref, arg, tid, root_type); } } |