From 1e2b4c18779cc02bf286f38d2df8df0a2e08cb6f Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sun, 15 Dec 2024 01:50:56 +0800 Subject: [PATCH] up backoff --- Include/internal/pycore_backoff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/internal/pycore_backoff.h b/Include/internal/pycore_backoff.h index 05f59396289ed1..06f66728d13e40 100644 --- a/Include/internal/pycore_backoff.h +++ b/Include/internal/pycore_backoff.h @@ -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; @@ -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)