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 e17b195 commit 44b4eb8Copy full SHA for 44b4eb8
1 file changed
Include/internal/pycore_backoff.h
@@ -37,12 +37,6 @@ extern "C" {
37
#define UNREACHABLE_BACKOFF 7
38
#define MAX_VALUE 0x1FFF
39
40
-static inline bool
41
-is_unreachable_backoff_counter(_Py_BackoffCounter counter)
42
-{
43
- return counter.value_and_backoff == UNREACHABLE_BACKOFF;
44
-}
45
-
46
static inline _Py_BackoffCounter
47
make_backoff_counter(uint16_t value, uint16_t backoff)
48
{
@@ -64,7 +58,6 @@ forge_backoff_counter(uint16_t counter)
64
58
65
59
restart_backoff_counter(_Py_BackoffCounter counter)
66
60
67
- assert(!is_unreachable_backoff_counter(counter));
68
61
uint16_t backoff = counter.value_and_backoff & BACKOFF_MASK;
69
62
assert(backoff <= MAX_BACKOFF);
70
63
backoff = (backoff == MAX_BACKOFF) ? backoff : backoff + 1;
0 commit comments