Skip to content

Commit 2600236

Browse files
Remove forge_backoff_counter
1 parent 6b1fe66 commit 2600236

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Include/internal/pycore_backoff.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ static _Py_BackoffCounter backoff_counter_next_table[] = {
5353
MAKE_BACKOFF_COUNTER(8190, 6),
5454
};
5555

56-
static inline _Py_BackoffCounter
57-
forge_backoff_counter(uint16_t counter)
58-
{
59-
_Py_BackoffCounter result;
60-
result.value_and_backoff = counter;
61-
return result;
62-
}
63-
6456
static inline _Py_BackoffCounter
6557
restart_backoff_counter(_Py_BackoffCounter counter)
6658
{

Python/ceval_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ GETITEM(PyObject *v, Py_ssize_t i) {
315315
* which is always an integral type. */
316316
// Force re-specialization when tracing a side exit to get good side exits.
317317
#define ADAPTIVE_COUNTER_TRIGGERS(COUNTER) \
318-
backoff_counter_triggers(forge_backoff_counter((COUNTER)))
318+
backoff_counter_triggers(MAKE_BACKOFF_COUNTER(0, (COUNTER)))
319319

320320
#define ADVANCE_ADAPTIVE_COUNTER(COUNTER) \
321321
do { \

0 commit comments

Comments
 (0)