Make stack visitor location for bad roots more verbose.
Change-Id: Ib2f3f48ccf1f5b2f3a4d1a61df553ad1a5c29d38
diff --git a/src/stack.h b/src/stack.h
index 5b5609c..1dfd5b6 100644
--- a/src/stack.h
+++ b/src/stack.h
@@ -25,6 +25,7 @@
#include "oat/runtime/context.h"
#include <stdint.h>
+#include <string>
namespace art {
@@ -477,6 +478,8 @@
return reinterpret_cast<StackIndirectReferenceTable*>(sp);
}
+ std::string DescribeLocation() const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+
private:
size_t ComputeNumFrames() const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);