We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3418be1 commit ceddb6aCopy full SHA for ceddb6a
Include/internal/pycore_backoff.h
@@ -25,7 +25,8 @@ extern "C" {
25
The 16-bit counter is structured as a 13-bit unsigned 'value'
26
and a 3-bit 'backoff' field. When resetting the counter, the
27
backoff field is incremented (until it reaches a limit) and the
28
- value is set to a bit mask representing the value 2**(2*backoff+1) - 1.
+ value is set to a bit mask representing some prime value near
29
+ to 2**(2*backoff+1) - 1, see value_and_backoff_next.
30
The maximum backoff is 6, since 7 is an UNREACHABLE_BACKOFF.
31
32
There is an exceptional value which must not be updated, 0xFFFF.
0 commit comments