Skip to content

Commit ceddb6a

Browse files
Comment fix
1 parent 3418be1 commit ceddb6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Include/internal/pycore_backoff.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ extern "C" {
2525
The 16-bit counter is structured as a 13-bit unsigned 'value'
2626
and a 3-bit 'backoff' field. When resetting the counter, the
2727
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.
28+
value is set to a bit mask representing some prime value near
29+
to 2**(2*backoff+1) - 1, see value_and_backoff_next.
2930
The maximum backoff is 6, since 7 is an UNREACHABLE_BACKOFF.
3031
3132
There is an exceptional value which must not be updated, 0xFFFF.

0 commit comments

Comments
 (0)