summaryrefslogtreecommitdiffstats
path: root/runtime/jdwp/object_registry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/jdwp/object_registry.cc')
-rw-r--r--runtime/jdwp/object_registry.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/jdwp/object_registry.cc b/runtime/jdwp/object_registry.cc
index 40ba3e3..49dceb2 100644
--- a/runtime/jdwp/object_registry.cc
+++ b/runtime/jdwp/object_registry.cc
@@ -206,7 +206,7 @@ void ObjectRegistry::DisposeObject(JDWP::ObjectId id, uint32_t reference_count)
}
}
-void ObjectRegistry::UpdateObjectPointers(RootVisitor visitor, void* arg) {
+void ObjectRegistry::UpdateObjectPointers(IsMarkedCallback* callback, void* arg) {
MutexLock mu(Thread::Current(), lock_);
if (object_to_entry_.empty()) {
return;
@@ -215,7 +215,7 @@ void ObjectRegistry::UpdateObjectPointers(RootVisitor visitor, void* arg) {
for (auto& pair : object_to_entry_) {
mirror::Object* new_obj;
if (pair.first != nullptr) {
- new_obj = visitor(pair.first, arg);
+ new_obj = callback(pair.first, arg);
if (new_obj != nullptr) {
new_object_to_entry.insert(std::make_pair(new_obj, pair.second));
}