diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-02-03 17:48:41 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-02-04 13:38:57 -0800 |
commit | 7befd0e35bbed32b90bc0c8b6d3fa8bd612f5506 (patch) | |
tree | e6ec21b97eb4c68ecbf1056a6767f233c241eceb /test/079-phantom/src | |
parent | 9e64cabda36bd7b30f2fd873750fdc17e5931358 (diff) | |
download | art-7befd0e35bbed32b90bc0c8b6d3fa8bd612f5506.zip art-7befd0e35bbed32b90bc0c8b6d3fa8bd612f5506.tar.gz art-7befd0e35bbed32b90bc0c8b6d3fa8bd612f5506.tar.bz2 |
Update ART tests to handle new System.gc behavior
Changed calls from System.gc to Runtime.getRuntime.gc where it was
necessary.
Required for:
https://android-review.googlesource.com/#/c/80253/
Change-Id: I2b0622585da54229a6248e95d40134b6d18598a9
Diffstat (limited to 'test/079-phantom/src')
-rw-r--r-- | test/079-phantom/src/Main.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/079-phantom/src/Main.java b/test/079-phantom/src/Main.java index 9c459c9..c54bc0b 100644 --- a/test/079-phantom/src/Main.java +++ b/test/079-phantom/src/Main.java @@ -38,29 +38,29 @@ public class Main { public void run() { createBitmaps(); - System.gc(); + Runtime.getRuntime().gc(); sleep(250); mBitmap2.drawAt(0, 0); System.out.println("nulling 1"); mBitmap1 = null; - System.gc(); + Runtime.getRuntime().gc(); sleep(500); System.out.println("nulling 2"); mBitmap2 = null; - System.gc(); + Runtime.getRuntime().gc(); sleep(500); System.out.println("nulling 3"); mBitmap3 = null; - System.gc(); + Runtime.getRuntime().gc(); sleep(500); System.out.println("nulling 4"); mBitmap4 = null; - System.gc(); + Runtime.getRuntime().gc(); sleep(500); Bitmap.shutDown(); |