mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
GH-131798: Optimize cached class attributes and methods in the JIT (GH-134403)
This commit is contained in:
parent
09e72cf091
commit
ec736e7dae
12 changed files with 365 additions and 130 deletions
|
@ -95,8 +95,10 @@ backoff_counter_triggers(_Py_BackoffCounter counter)
|
|||
return counter.value_and_backoff < UNREACHABLE_BACKOFF;
|
||||
}
|
||||
|
||||
/* Initial JUMP_BACKWARD counter.
|
||||
* This determines when we create a trace for a loop. */
|
||||
// Initial JUMP_BACKWARD counter.
|
||||
// Must be larger than ADAPTIVE_COOLDOWN_VALUE, otherwise when JIT code is
|
||||
// invalidated we may construct a new trace before the bytecode has properly
|
||||
// re-specialized:
|
||||
#define JUMP_BACKWARD_INITIAL_VALUE 4095
|
||||
#define JUMP_BACKWARD_INITIAL_BACKOFF 12
|
||||
static inline _Py_BackoffCounter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue