GH-129715: Remove _DYNAMIC_EXIT (GH-129716) · python/cpython@5fa7e1b

GitHub

File tree

Include

cpython

internal

Lib/test/test_capi

Misc/NEWS.d/next/Core_and_Builtins

Python

Tools/scripts

Original file line numberDiff line numberDiff line change@@ -129,6 +129,7 @@ typedef struct _optimization_stats {

129129uint64_tinner_loop;

130130uint64_trecursive_call;

131131uint64_tlow_confidence;

132+uint64_tunknown_callee;

132133uint64_texecutors_invalidated;

133134UOpStatsopcode[PYSTATS_MAX_UOP_ID+1];

134135uint64_tunsupported_opcode[256];

Original file line numberDiff line numberDiff line change@@ -289,8 +289,7 @@ static inline int is_terminator(const _PyUOpInstruction *uop)

289289intopcode=uop->opcode;

290290return (

291291opcode==_EXIT_TRACE||

292-opcode==_JUMP_TO_TOP||

293-opcode==_DYNAMIC_EXIT

292+opcode==_JUMP_TO_TOP

294293 );

295294}

296295Original file line numberDiff line numberDiff line change@@ -1160,6 +1160,7 @@ def testfunc(n):

11601160self.assertIsNotNone(ex)

11611161self.assertIn("_RETURN_GENERATOR", get_opnames(ex))

[email protected]("Tracing into generators currently isn't supported.")

11631164deftest_for_iter_gen(self):

11641165defgen(n):

11651166foriinrange(n):

Original file line numberDiff line numberDiff line change@@ -0,0 +1 @@

1+Improve JIT performance for generators.