commit | 32ec4d1da8455caff8af6ed32ed1e99cbd028d8a | [log] [tgz] |
---|---|---|
author | Miguel <miguelaranda@google.com> | Thu Mar 31 13:43:13 2022 +0000 |
committer | Miguel Aranda <miguelaranda@google.com> | Mon Aug 22 10:02:26 2022 +0000 |
tree | 4d8f6e129868797cabd4e8d6a7f476b341e16dfa | |
parent | 85eb285fc7400912e00f08132e8caf7f34d6a753 [diff] |
Enable StrictMode checks for explicit garbageCollection from T. This disallows calls to runtime.gc() in the new version of Android. Explicit GC calls are blocking and can thus cause runtime overhead. They used to be performed as a pattern in order to avoid GC_FOR_ALLOC. However, that was only the case for Dalvik, that is now discouraged for ART. Bug: 3400644 Test: m Test: atest StrictModeTest Change-Id: I12cee0af955a708b6bf5a3a0c21cddc7f6a19185