summaryrefslogtreecommitdiffstats
path: root/runtime/gc/heap.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-05-02 10:27:26 -0700
committerMathieu Chartier <mathieuc@google.com>2014-05-02 11:20:24 -0700
commit89a201e599da95d88590c7b4d069b76735e20fa8 (patch)
treec01361799ceb663110ed8fb87f9f3d2d35ea22b5 /runtime/gc/heap.h
parent6a6a5304e75a1af484975cedc832d0a80c3e5e61 (diff)
downloadart-89a201e599da95d88590c7b4d069b76735e20fa8.zip
art-89a201e599da95d88590c7b4d069b76735e20fa8.tar.gz
art-89a201e599da95d88590c7b4d069b76735e20fa8.tar.bz2
Add GC cause to WaitForGcToComplete message.
Change-Id: I8fe107d90a84de065c407b8d29fd106267ac440d
Diffstat (limited to 'runtime/gc/heap.h')
-rw-r--r--runtime/gc/heap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/gc/heap.h b/runtime/gc/heap.h
index d3b5cdc..d770024 100644
--- a/runtime/gc/heap.h
+++ b/runtime/gc/heap.h
@@ -300,7 +300,8 @@ class Heap {
// Blocks the caller until the garbage collector becomes idle and returns the type of GC we
// waited for.
- collector::GcType WaitForGcToComplete(Thread* self) LOCKS_EXCLUDED(gc_complete_lock_);
+ collector::GcType WaitForGcToComplete(GcCause cause, Thread* self)
+ LOCKS_EXCLUDED(gc_complete_lock_);
// Update the heap's process state to a new value, may cause compaction to occur.
void UpdateProcessState(ProcessState process_state);
@@ -641,7 +642,7 @@ class Heap {
// Blocks the caller until the garbage collector becomes idle and returns the type of GC we
// waited for.
- collector::GcType WaitForGcToCompleteLocked(Thread* self)
+ collector::GcType WaitForGcToCompleteLocked(GcCause cause, Thread* self)
EXCLUSIVE_LOCKS_REQUIRED(gc_complete_lock_);
void RequestCollectorTransition(CollectorType desired_collector_type, uint64_t delta_time)