OSDN Git Service

Use the card table to scan the immune region of the heap.
authorCarl Shapiro <cshapiro@google.com>
Wed, 2 Mar 2011 23:43:39 +0000 (15:43 -0800)
committerCarl Shapiro <cshapiro@google.com>
Wed, 2 Mar 2011 23:43:39 +0000 (15:43 -0800)
commit6c355e53332502314c3d82a7afcf898d66118f27
tree51a9b0ba7aa76de62f827526eaf2ae062a8a18af
parentb0ef521d38b5c86074354b40763a158df11fc308
Use the card table to scan the immune region of the heap.

Using the card table results in a dramatic cost reduction in scanning
time.  During a reboot, scanning each object in the zygote for
pointers to the application heap costs an average of 20ms of thread
time on a stingray with 8 megabyte zygote.  In comparison, scanning
dirty cards in the zygote costs 300us on average.

Change-Id: I1dba35646d509e6b1b4535e291a1eb6f66d7b218
vm/alloc/CardTable.c
vm/alloc/Heap.c
vm/alloc/HeapBitmap.c
vm/alloc/HeapBitmap.h
vm/alloc/HeapInternal.h
vm/alloc/HeapSource.c
vm/alloc/HeapSource.h
vm/alloc/MarkSweep.c
vm/alloc/MarkSweep.h