summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/Main.java
diff options
context:
space:
mode:
authortony.ys_liu <tony.ys_liu@htc.com>2015-01-14 18:28:03 +0800
committerMathieu Chartier <mathieuc@google.com>2015-02-06 11:00:00 -0800
commit7d9ad8bb71df2b1dc957121ef2ebee69d96f8e0c (patch)
tree518773975ee485c25fb46638a6d62f7550578c80 /test/ProfileTestMultiDex/Main.java
parent65370e37b3fd9e53e3c1bce5757912e8309cd305 (diff)
Fix false alarm on thread suspend timeout
Root cause: CLOCK_REALTIME will jump backward/forward when system time-of-day clock is changed. It implies now_abs_ts will jump a lot across end_abs_ts. Then, it makes a false alarm (process crash) on thread suspend timeout when doing ComputeRelativeTimeSpec. if (ComputeRelativeTimeSpec(&rel_ts, end_abs_ts, now_abs_ts)) { return false; // Timed out. } Solution: Use CLOCK_MONOTONIC instead Bug: 19296054 (cherry picked from commit 071e48ecfc95b1c67b07c975190d51f646ac4276) Change-Id: I68fa5afda75e53373e836dd7779821aeb6f1bd46
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions