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:42:59 +0000 (15:42 -0700)
commit014885a8561f2415cb19ebde1e4084b88d63b746
treeafc34472440db252c4b4defef1b011dbb6f61adf
parent03c7df9648028228d75dddfc25cbc81ab8096167
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

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