blob: 2b683dd75e42abc3f16518c06783cc4fa11443e8 [file] [log] [blame]
Alex Light07f06212017-06-01 14:01:43 -07001Regression test for b/62237378
2
3It was possible for the JVMTI class redefinition to encounter a use-after-free
4bug if there had been an attempted redefinition that failed due to a
5verification error in the same class loader. Actually encountering the bug
6required that a later redefinition happen to get the same native pointer for its
7dex-file as the failed redefinition.
8
9Hitting this use-after-free can cause many strange outcomes, from CHECK failures
10to segfaults to incorrect redefinition failures (for example on buggy builds
11this test will fail a DCHECK on debug builds, segfault on x86_64 hosts and have
12redefinition of LDexCacheSmash$Transform; erroneously fail with
13JVMTI_ERROR_FAILS_VERIFICATION on 32 bit hosts).