-
- Downloads
[3.11] gh-92228: disable the compiler's 'small exit block inlining'...
[3.11] gh-92228: disable the compiler's 'small exit block inlining' optimization for blocks that have a line number (GH-94592) (GH-94643) Inlining of code that corresponds to source code lines, can make it hard to distinguish later between code which is only reachable from except handlers, and that which is reachable in normal control flow. This caused problems with the debugger's jump feature. This PR turns off the inlining optimisation for code which has line numbers. We still inline things like the implicit "return None".. (cherry picked from commit bde06e1b) Co-authored-by:Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Showing
- Lib/test/test_dis.py 8 additions, 10 deletionsLib/test/test_dis.py
- Lib/test/test_peepholer.py 2 additions, 0 deletionsLib/test/test_peepholer.py
- Lib/test/test_sys_settrace.py 9 additions, 0 deletionsLib/test/test_sys_settrace.py
- Misc/NEWS.d/next/Core and Builtins/2022-07-06-14-02-26.gh-issue-92228.44Cbly.rst 1 addition, 0 deletions...nd Builtins/2022-07-06-14-02-26.gh-issue-92228.44Cbly.rst
- Python/compile.c 14 additions, 0 deletionsPython/compile.c
Loading
Please register or sign in to comment