diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-03-31 12:05:24 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-03-31 15:57:27 -0700 |
commit | 461687d898dfd91253f242072849a9fe43e5f523 (patch) | |
tree | 452e3e11cb5746f487920f87fcaf1b238d2a8957 /runtime/runtime.h | |
parent | e33d0cb5b88703302e3912ca96dabcb06fea4340 (diff) | |
download | android_art-461687d898dfd91253f242072849a9fe43e5f523.tar.gz android_art-461687d898dfd91253f242072849a9fe43e5f523.tar.bz2 android_art-461687d898dfd91253f242072849a9fe43e5f523.zip |
Visit image roots for hprof
Bug: 19995360
(cherry picked from commit 0cab5e68f14ee403380664146db6dc7ddfc32064)
Change-Id: I17868bff2a701dc25291d41b9732c6b86f92be08
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 085335fd3c..64b7183247 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -298,6 +298,10 @@ class Runtime { void VisitRoots(RootCallback* visitor, void* arg, VisitRootFlags flags = kVisitRootFlagAllRoots) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + // Visit image roots, only used for hprof since the GC uses the image space mod union table + // instead. + void VisitImageRoots(RootCallback* visitor, void* arg) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + // Visit all of the roots we can do safely do concurrently. void VisitConcurrentRoots(RootCallback* visitor, void* arg, VisitRootFlags flags = kVisitRootFlagAllRoots) |