diff options
Diffstat (limited to 'runtime/indirect_reference_table.cc')
-rw-r--r-- | runtime/indirect_reference_table.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/indirect_reference_table.cc b/runtime/indirect_reference_table.cc index 8194a0d..4a02d74 100644 --- a/runtime/indirect_reference_table.cc +++ b/runtime/indirect_reference_table.cc @@ -309,9 +309,10 @@ bool IndirectReferenceTable::Remove(uint32_t cookie, IndirectRef iref) { return true; } -void IndirectReferenceTable::VisitRoots(RootVisitor* visitor, void* arg) { +void IndirectReferenceTable::VisitRoots(RootCallback* callback, void* arg, uint32_t tid, + RootType root_type) { for (auto ref : *this) { - *ref = visitor(const_cast<mirror::Object*>(*ref), arg); + *ref = callback(const_cast<mirror::Object*>(*ref), arg, tid, root_type); DCHECK(*ref != nullptr); } } |