Repository navigation
Commit 7ddd6e2
gh-162421: Keep the full spin if the clock failed at the start
If PyTime_MonotonicRaw() failed when the wait started, spin_start is 0
and the first successful read made the spin look longer than
MAX_SPIN_NS, ending it after one yield. Skip the new limits in that
case so the spin stays as it was before them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 87a7a38 commit 7ddd6e2
1 file changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
129 | 138 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| |||
0 commit comments