Use Runtime.getRuntime().gc() instead System.gc()
commitdc3de2f37c4902792d5dd2b40e5ee1f6950af4f3
authorhush <hush@chromium.org>
Wed, 3 Dec 2014 20:06:23 +0000 (3 12:06 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Dec 2014 20:06:44 +0000 (3 20:06 +0000)
tree97422cdeb6310ec84d4f622b67ede6d2006a4ec0
parent01f0bbc40496a10cb6ca8d82ff8c0532f011b63b
Use Runtime.getRuntime().gc() instead System.gc()

System.gc() does not work on ART and seems to do nothing.
Runtime.getRuntime().gc() should work on both ART and Dalvik.

BUG=438478

Review URL: https://codereview.chromium.org/774313002

Cr-Commit-Position: refs/heads/master@{#306656}
android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java