summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/Main.java
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2014-12-02 18:31:31 -0800
committerHans Boehm <hboehm@google.com>2014-12-04 15:38:02 -0800
commit2f62cfe690257d516233b399f68d322b1cf8e4f4 (patch)
tree944ee233345383bede0ac943f7c9dd970b52d31d /test/ProfileTestMultiDex/Main.java
parent25fda92083d5b93b38cc1f6b12ac6a44d992d6a4 (diff)
Make Barrier robust against spurious wakeups
Fix Barrier implementation so that Wait cannot return prematurely due to a spurious condition variable wakeup or interrupted futex call. Document the resulting semantics of barrier.h, which are a bit surprising, but appear to be exactly what current clients need. Fix the test so that it actually passes with the fixed barrier.h, and no longer tests for properties that can't be correctly satisfied. Improve comment for InitTimeSpec, which we almost used. (Differs from AOSP patch in that Increment returns void here, as does cv TimedWait. In AOSP they return bool.) Bug:18509123 Change-Id: I0b25f33bcd22322ba04e3951cd484843788c2bf5 (cherry picked from commit 5567c11b9157eec110c0631aa2bff5836631e868)
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions