diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-01-28 14:50:23 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-02-11 10:40:10 -0800 |
commit | 83c8ee000d525017ead8753fce6bc1020249b96a (patch) | |
tree | d5167ed15dee2629905ac3640b6ea0578d4ae312 /runtime/monitor.h | |
parent | 7cba217ab0661d74deccbb97160cdf60b74d4ea3 (diff) | |
download | art-83c8ee000d525017ead8753fce6bc1020249b96a.tar.gz art-83c8ee000d525017ead8753fce6bc1020249b96a.tar.bz2 art-83c8ee000d525017ead8753fce6bc1020249b96a.zip |
Add root types and thread id to root visiting.
Enables us to pass the root type and thread id to hprof.
Bug: 12680863
Change-Id: I6a0f1f9e3aa8f9b4033d695818ae7ca3460d67cb
Diffstat (limited to 'runtime/monitor.h')
-rw-r--r-- | runtime/monitor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/monitor.h b/runtime/monitor.h index 85a8c48e50..ca95e0b8c9 100644 --- a/runtime/monitor.h +++ b/runtime/monitor.h @@ -26,7 +26,7 @@ #include "atomic.h" #include "base/mutex.h" -#include "root_visitor.h" +#include "object_callbacks.h" #include "sirt_ref.h" #include "thread_state.h" @@ -220,7 +220,8 @@ class MonitorList { void Add(Monitor* m); - void SweepMonitorList(RootVisitor visitor, void* arg) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + void SweepMonitorList(IsMarkedCallback* callback, void* arg) + SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); void DisallowNewMonitors(); void AllowNewMonitors(); |