summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test_utils.h
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2018-04-20 09:39:21 -0700
committerAlex Light <allight@google.com>2018-04-20 09:45:17 -0700
commitf3c670e465f835f8d27fc646eca545dab4c0450f (patch)
tree41aecea96d03ac8bb41b61c559cdcde7b9e4dc04 /compiler/optimizing/codegen_test_utils.h
parent740a50992ea1a200068eb4486a172a151c9b329c (diff)
Make test 906 retry to avoid gc races
Test 906 counts the total number of uncollected (note not necessarily reachable) objects in the java heap. Due to the api design it cannot do this in any sort of synchronized or atomic way. This is usually not a problem though because the test does very little allocation so the number of objects should not generally be changing. When run on CTS, however, it is possible that objects might be created or collected from other threads. This could cause the test to incorrectly fail. We made this test retry the counting of objects up to 10 times in order to hopefully get a count without racing other threads. Test: ./test/run-test --host 906 Bug: 78344479 Change-Id: I80da119ed58193aae8d08e6f82ee4537fc979c85
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions