Index: src/top.cc |
diff --git a/src/top.cc b/src/top.cc |
index 3efd1fc80e27efd0d11910dda24976e332180702..0fcf4586674d2ede50834bc36357a8937002afd1 100644 |
--- a/src/top.cc |
+++ b/src/top.cc |
@@ -88,6 +88,17 @@ char* Top::Iterate(ObjectVisitor* v, char* thread_storage) { |
} |
+void Top::IterateThread(ThreadVisitor* v) { |
+ v->VisitThread(&thread_local_); |
+} |
+ |
+ |
+void Top::IterateThread(ThreadVisitor* v, char* t) { |
+ ThreadLocalTop* thread = reinterpret_cast<ThreadLocalTop*>(t); |
+ v->VisitThread(thread); |
+} |
+ |
+ |
void Top::Iterate(ObjectVisitor* v, ThreadLocalTop* thread) { |
v->VisitPointer(&(thread->pending_exception_)); |
v->VisitPointer(&(thread->pending_message_obj_)); |