mirror of https://github.com/python/cpython
gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in gh-118322 (GH-120712)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
This commit is contained in:
parent
ace2045ea6
commit
f385d99f57
|
@ -0,0 +1 @@
|
||||||
|
Fix ``_CHECK_STACK_SPACE`` optimization problems introduced in :gh:`118322`.
|
|
@ -601,7 +601,6 @@ dummy_func(void) {
|
||||||
(void)callable;
|
(void)callable;
|
||||||
(void)self_or_null;
|
(void)self_or_null;
|
||||||
(void)args;
|
(void)args;
|
||||||
first_valid_check_stack = NULL;
|
|
||||||
new_frame = NULL;
|
new_frame = NULL;
|
||||||
ctx->done = true;
|
ctx->done = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1492,7 +1492,6 @@
|
||||||
(void)callable;
|
(void)callable;
|
||||||
(void)self_or_null;
|
(void)self_or_null;
|
||||||
(void)args;
|
(void)args;
|
||||||
first_valid_check_stack = NULL;
|
|
||||||
new_frame = NULL;
|
new_frame = NULL;
|
||||||
ctx->done = true;
|
ctx->done = true;
|
||||||
stack_pointer[-2 - oparg] = (_Py_UopsSymbol *)new_frame;
|
stack_pointer[-2 - oparg] = (_Py_UopsSymbol *)new_frame;
|
||||||
|
|
Loading…
Reference in New Issue