OSDN Git Service

Fix regression in ModUnionTable RAM usage
authorMathieu Chartier <mathieuc@google.com>
Wed, 6 Apr 2016 22:27:19 +0000 (15:27 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 6 Apr 2016 22:50:00 +0000 (15:50 -0700)
commit56f9a895b938af96ffa1f5725904afd76fc47c73
tree7e5daa065982d909da229843d5121e8cd5aa47ae
parentdc148d24cc11845036063a2876c9bfef03d00ce5
Fix regression in ModUnionTable RAM usage

We forgot to check if a reference changed before assigning it back,
this caused extra dirty pages in the image.

BusinessCard .art PSS
Before: 1678 KB
After: 991 KB

System wide .art PSS goes down ~20MB on my shamu.

Bug: 27906566

(cherry picked from commit 014885a8561f2415cb19ebde1e4084b88d63b746)

Change-Id: I64d149f10f3ef1ed1cb61810282559b47823014c
runtime/gc/accounting/mod_union_table.cc
runtime/gc/collector/mark_sweep.h