From: Hiroshi Yamauchi Date: Tue, 27 Jan 2015 18:54:18 +0000 (+0000) Subject: Merge "ART: clear dirty cards of alloc space for MS/CMS partial and full GCs" X-Git-Tag: android-x86-7.1-r1~889^2~2110 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=85ed6bdd;p=android-x86%2Fart.git Merge "ART: clear dirty cards of alloc space for MS/CMS partial and full GCs" --- 85ed6bdd890c08f50c205d7f0604b5a35603b13e diff --cc runtime/gc/heap.h index 2a0b466ca,d9399d0eb..9aced81a7 --- a/runtime/gc/heap.h +++ b/runtime/gc/heap.h @@@ -821,10 -818,13 +821,13 @@@ class Heap SHARED_LOCKS_REQUIRED(Locks::heap_bitmap_lock_); // Swap the allocation stack with the live stack. - void SwapStacks(Thread* self); + void SwapStacks(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - // Clear cards and update the mod union table. - void ProcessCards(TimingLogger* timings, bool use_rem_sets); + // Clear cards and update the mod union table. When process_alloc_space_cards is true, + // if clear_alloc_space_cards is true, then we clear cards instead of ageing them. We do + // not process the alloc space if process_alloc_space_cards is false. + void ProcessCards(TimingLogger* timings, bool use_rem_sets, bool process_alloc_space_cards, + bool clear_alloc_space_cards); // Push an object onto the allocation stack. void PushOnAllocationStack(Thread* self, mirror::Object** obj)