diff options
author | Barry Hayes <bhayes@google.com> | 2010-06-22 12:32:59 -0700 |
---|---|---|
committer | Barry Hayes <bhayes@google.com> | 2010-07-08 09:34:09 -0700 |
commit | 6e5cf6021b2f3e00e18ab402f23ab93b27c6061b (patch) | |
tree | cc2d75a7b271fe184969ae442912de30d27118bf /vm/Dalvik.h | |
parent | 3be6164a73167d992ffd075162b458576a792375 (diff) | |
download | android_dalvik-6e5cf6021b2f3e00e18ab402f23ab93b27c6061b.tar.gz android_dalvik-6e5cf6021b2f3e00e18ab402f23ab93b27c6061b.tar.bz2 android_dalvik-6e5cf6021b2f3e00e18ab402f23ab93b27c6061b.zip |
Quicker partial collection by using card marking.
Add calls to the card marking from the write barrier routines, so that
a write to an Object marks the appropriate card. Add code in the GC to
use and rebuild the cards at a partial GC, clearing cards in the
Zygote heap which do not in fact contain references to the application
heap.
Change-Id: Ie6f29fd096e029f48085715b282b6db8a7122555
Diffstat (limited to 'vm/Dalvik.h')
-rw-r--r-- | vm/Dalvik.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/Dalvik.h b/vm/Dalvik.h index 5d8444047..6418bf2c7 100644 --- a/vm/Dalvik.h +++ b/vm/Dalvik.h @@ -55,6 +55,7 @@ #include "oo/Array.h" #include "Exception.h" #include "alloc/Alloc.h" +#include "alloc/CardTable.h" #include "alloc/HeapDebug.h" #include "alloc/HeapWorker.h" #include "alloc/GC.h" |