diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-01-23 13:18:53 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-02-26 14:48:46 -0800 |
commit | 4858a935868162266ead90ef2f7802108711371d (patch) | |
tree | f9c0fb37e188223122e3b823b0f0000e0e20c228 /runtime/Android.mk | |
parent | 0644b2dae97d13bec14840cccb11b54697c34a34 (diff) | |
download | art-4858a935868162266ead90ef2f7802108711371d.tar.gz art-4858a935868162266ead90ef2f7802108711371d.tar.bz2 art-4858a935868162266ead90ef2f7802108711371d.zip |
Change card cache mod-union table to use bitmaps
Previously used card sets, using bitmaps saves memory and slightly
increases performance.
Added mod union table test.
Performance EvaluateAndApplyChanges (minimal changes):
Before (card cache image mu table):
UpdateAndMarkImageModUnionTable: Avg: 524.320us
ImageModUnionClearCards: Avg: 54.580us
Native PSS: ~67500kB
After (card cache image mu table):
UpdateAndMarkImageModUnionTable: Avg: 515.600us
ImageModUnionClearCards: Avg: 53.780us
Native PSS: ~66014kB
Native PSS was higher before since the mod_union_table->SetCards()
which happens pre zygote fork was allocating a large amount of
std::nodes.
Bug: 11859910
Change-Id: I956b7e51d5572feec1393ffa618b7b7d8c147b28
Diffstat (limited to 'runtime/Android.mk')
-rw-r--r-- | runtime/Android.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/Android.mk b/runtime/Android.mk index ab346e3337..c5cf89014e 100644 --- a/runtime/Android.mk +++ b/runtime/Android.mk @@ -44,6 +44,7 @@ LIBART_COMMON_SRC_FILES := \ elf_file.cc \ gc/allocator/dlmalloc.cc \ gc/allocator/rosalloc.cc \ + gc/accounting/bitmap.cc \ gc/accounting/card_table.cc \ gc/accounting/heap_bitmap.cc \ gc/accounting/mod_union_table.cc \ |