summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.cc
diff options
context:
space:
mode:
author Hans Boehm <hboehm@google.com> 2022-07-08 17:17:47 -0700
committer Hans Boehm <hboehm@google.com> 2022-07-19 19:34:19 +0000
commit83958e3345e5c07a7375f2dbd69e6b45fd0ac835 (patch)
tree7493df11827bc80d8d41d377cc16ac06a5fd6c09 /compiler/optimizing/loop_optimization.cc
parent78f3d3a7b2d795cc0915218abafb0d5b47aa2225 (diff)
Remove bad code from ComputeRelativeTimeSpec
The test in the "else if" clause was off by one. But it should never be exercised anyway. Replace it with a correct DCHECK. Have ComputeRelativeTimeSpec return false, rather than true, on failure to compute a valid timespec. Update num_contenders if lock acquisition results in unexpected failure. This matters only in that it may put us into a slightly better state while logging debug information. Fix an unrelated comment typo. Bug: 238032384 Test: Build and boot AOSP eng build Change-Id: Idf3a0b4c349168370079d24457ea134b06cf231e
Diffstat (limited to 'compiler/optimizing/loop_optimization.cc')
0 files changed, 0 insertions, 0 deletions