diff options
| author | Mathieu Chartier <mathieuc@google.com> | 2014-07-08 17:46:19 -0700 |
|---|---|---|
| committer | Mathieu Chartier <mathieuc@google.com> | 2014-07-09 15:03:54 -0700 |
| commit | 7c88c6054dfc01f2ac36b19842d467626459fc45 (patch) | |
| tree | 76b0ed6b40c1cadbb732ea863fd46279f952445a /test/MultiDex | |
| 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
Diffstat (limited to 'test/MultiDex')
0 files changed, 0 insertions, 0 deletions
