summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver_test.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-10-28 18:36:09 -0700
committer Mathieu Chartier <mathieuc@google.com> 2015-10-28 19:24:54 -0700
commit10d2508b105427ef1bcaf0c222873bae7acc66d3 (patch)
tree8aa018dd07a1d84daf9f44ea7bb1c02442c44097 /compiler/driver/compiler_driver_test.cc
parent5f2e628b280dfc5f8385e489d44cc0960fcea484 (diff)
Change Checkpoint API to return total number of checkpoints
Fixes a race condition with SetStateUnsafe that caused some warnings in the Barrier::~Barrier. The race was: RunCheckpoint sees suspended thread, runs the checkpoint. Inside the checkpoint, the thread state had changed to runnable by SetStateUnsafe. This occasionally caused more Barrier::Pass than expected. The fix is to return the total number of checkpoints instead of just the runnable ones. Bug: 24191051 Change-Id: If15a933ed4c8efa66a5f27cd5feaa2e5957ae804
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
0 files changed, 0 insertions, 0 deletions