summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2020-04-14 13:56:28 -0700
committerAlex Light <allight@google.com>2020-04-15 09:58:29 -0700
commit0bd94e59a21bbd862e179974538b3293eb24c26d (patch)
tree611504a3fd67bc793fbc307042ebf2ebda526ffe /test/ProfileTestMultiDex
parent39a2b107c577dc1aa8e785155db7281431b190a8 (diff)
Fix deadlock bug in test 2005
Test 2005 checks that redefinition is possible even when some of the threads involved are suspended. It does this by spawning a bunch of threads, suspending all of them, redefining a class those threads are using, and then check that the results of the threads calculations are consistent. This could cause a problem since (due to the structure of the code) a test thread could be responsible for initializing the class being redefined. If this is still ongoing when all threads are suspended then the main test thread will get deadlocked waiting for the class to finish initializing (since the class must have either not started or already finished initialization for redefinition to be possible). To fix this issue we just force the class to be initialized before running the main test code. Bug: 148341959 Test: ./test.py --host Merged-In: Ic1bf59ffd760b97b3e173ee48d3ce7ad9bb6c3ce Change-Id: Ic1bf59ffd760b97b3e173ee48d3ce7ad9bb6c3ce (cherry picked from commit f823f0eeec8c69d956b665adc7da3b6038a969d1)
Diffstat (limited to 'test/ProfileTestMultiDex')
0 files changed, 0 insertions, 0 deletions