summaryrefslogtreecommitdiff
path: root/runtime/gc/verification.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/gc/verification.h')
-rw-r--r--runtime/gc/verification.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/gc/verification.h b/runtime/gc/verification.h
index 3d95d93015..903e159c5a 100644
--- a/runtime/gc/verification.h
+++ b/runtime/gc/verification.h
@@ -57,8 +57,16 @@ class Verification {
bool IsValidHeapObjectAddress(const void* addr, space::Space** out_space = nullptr) const
REQUIRES_SHARED(Locks::mutator_lock_);
+ // Find the first path to the target from the root set. Should be called while paused since
+ // visiting roots is not safe otherwise.
+ std::string FirstPathFromRootSet(ObjPtr<mirror::Object> target) const
+ REQUIRES_SHARED(Locks::mutator_lock_);
+
private:
gc::Heap* const heap_;
+
+ class BFSFindReachable;
+ class CollectRootVisitor;
};
} // namespace gc