diff options
| author | 2022-07-08 17:17:47 -0700 | |
|---|---|---|
| committer | 2022-07-19 19:34:19 +0000 | |
| commit | 83958e3345e5c07a7375f2dbd69e6b45fd0ac835 (patch) | |
| tree | 7493df11827bc80d8d41d377cc16ac06a5fd6c09 /compiler/optimizing/loop_optimization.cc | |
| parent | 78f3d3a7b2d795cc0915218abafb0d5b47aa2225 (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