Skip to content

Commit

Permalink
up backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner committed Dec 14, 2024
1 parent e34235c commit 1e2b4c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Include/internal/pycore_backoff.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static inline _Py_BackoffCounter
make_backoff_counter(uint16_t value, uint16_t backoff)
{
assert(backoff <= 15);
assert(value <= 0x1fff);
assert(value <= 0xffff);
_Py_BackoffCounter result;
result.value_and_backoff = (value << BACKOFF_BITS) | backoff;
return result;
Expand Down Expand Up @@ -114,7 +114,7 @@ initial_jump_backoff_counter(void)

/* Initial RESUME counter.
* This determines when we create a trace for a function. */
#define RESUME_INITIAL_VALUE (JUMP_BACKWARD_INITIAL_VALUE * 2 + 1)
#define RESUME_INITIAL_VALUE (JUMP_BACKWARD_INITIAL_VALUE * 4)
#define RESUME_INITIAL_BACKOFF 14
static inline _Py_BackoffCounter
initial_resume_counter(void)
Expand Down

0 comments on commit 1e2b4c1

Please sign in to comment.