commit | 7bf52d28978a6a747795cc0c78b04a3e83f0cf16 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Thu Mar 13 14:46:09 2014 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Thu Mar 13 15:32:51 2014 -0700 |
tree | 3cbd64f45438a47d4caef9c32f0096307b1e2cf9 | |
parent | 135ce2ea28e98df624aa071688bd01e0dadf2f62 [diff] |
Fix heap trimming logic. The new heap trimming logic introduced in the c/84301 was not very good since the heap trim would get avoided since the daemon thread was coming to the heap trimming code before the scheduled time. The new logic is to do the heap trim if the last heap trim occurred more than kHeapTrimWait ns ago. Change-Id: I9d0e6766bf0c68e5f7fb15fb059140e1f1264216