]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-126795: Increase the JIT side-exit threshold from 64 to 4096 (GH-127155)
authorBrandt Bucher <brandtbucher@microsoft.com>
Wed, 4 Dec 2024 23:01:28 +0000 (15:01 -0800)
committerGitHub <noreply@github.com>
Wed, 4 Dec 2024 23:01:28 +0000 (15:01 -0800)
Include/internal/pycore_backoff.h

index 3e02728522828e7fa166ca71a55d155490206f02..b5e33fa8b7abc0a759485e8cd555f4ac1e8720e2 100644 (file)
@@ -115,10 +115,9 @@ initial_jump_backoff_counter(void)
 /* Initial exit temperature.
  * Must be larger than ADAPTIVE_COOLDOWN_VALUE,
  * otherwise when a side exit warms up we may construct
- * a new trace before the Tier 1 code has properly re-specialized.
- * Backoff sequence 64, 128, 256, 512, 1024, 2048, 4096. */
-#define SIDE_EXIT_INITIAL_VALUE 63
-#define SIDE_EXIT_INITIAL_BACKOFF 6
+ * a new trace before the Tier 1 code has properly re-specialized. */
+#define SIDE_EXIT_INITIAL_VALUE 4095
+#define SIDE_EXIT_INITIAL_BACKOFF 12
 
 static inline _Py_BackoffCounter
 initial_temperature_backoff_counter(void)