OSDN Git Service

Fix flaky jit-gcstress tests 93{4,5,8}.
authorAlex Light <allight@google.com>
Wed, 1 Feb 2017 17:41:26 +0000 (09:41 -0800)
committerAlex Light <allight@google.com>
Wed, 1 Feb 2017 18:17:44 +0000 (10:17 -0800)
commite41cad6f2a989a80f58dec18c99bb36b0ce8ae23
tree96db80d74ab8aa7f51ea143f95351ea5e8d6ef35
parent50a676848d644bbfafa9f47eff0ca9d2ccba6e4b
Fix flaky jit-gcstress tests 93{4,5,8}.

We were letting the jit and the main thread race on class definition.
If the 'leader' changes then we would end up with the test class
having an unexpected definition, causing the test to fail. We fixed
this by making sure all threads get the same definition regardless of
speed.

Bug: 34799243
Test: mma -j40 test-art-host
Test: stress --cpu 60 &; \
      while ./test/run-test --host --jit --gcstress --64 934 ; do ; done
Test: stress --cpu 60 &; \
      while ./test/run-test --host --jit --gcstress --64 935 ; do ; done
Test: stress --cpu 60 &; \
      while ./test/run-test --host --jit --gcstress --64 938 ; do ; done

Change-Id: I0d6785b4c3c41db1d655cf1ff22be60809923a7a
test/934-load-transform/src/Main.java
test/935-non-retransformable/src-ex/TestMain.java
test/935-non-retransformable/src/Main.java
test/938-load-transform-bcp/src/Main.java
test/ti-agent/common_helper.cc