commit | 7c88c6054dfc01f2ac36b19842d467626459fc45 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Tue Jul 08 17:46:19 2014 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Wed Jul 09 15:03:54 2014 -0700 |
tree | 76b0ed6b40c1cadbb732ea863fd46279f952445a | |
parent | b796d1bfac8cfaf4dc98f411ae6157f964d4a325 [diff] |
Add easy way to ensure the next allocation does GC. Added a class called ScopedHeapFill which changes the bytes allocated counter to be equal to the growth limit. This causes the next allocation to do a GC and possibly generate an OOM error. This is useful for tests which need GC to happen at specific point. Change-Id: Ibd8f3d5928b58534c5165ba7c296980002aa2c28