diff options
author | db3l <db3l.net@gmail.com> | 2021-03-04 03:09:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 03:09:48 (GMT) |
commit | 131d5516409791b170b09a6ef8ed8463c9b09015 (patch) | |
tree | 236edfac941bd25da9ce5165444f023b9f6639ee /Include/pyport.h | |
parent | 8747c1f233fc1a3dd5ee3d8e163317f28b4d7568 (diff) | |
download | cpython-131d5516409791b170b09a6ef8ed8463c9b09015.zip cpython-131d5516409791b170b09a6ef8ed8463c9b09015.tar.gz cpython-131d5516409791b170b09a6ef8ed8463c9b09015.tar.bz2 |
bpo-43271: Re-enable ceval.c optimizations for Windows debug builds (GH-24739)
Partially reverts commit b74396c3167cc780f01309148db02709bc37b432
The optimizations are necessary to prevent the interpreter from
crashing in a number of tests involving recursion.
Diffstat (limited to 'Include/pyport.h')
-rw-r--r-- | Include/pyport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 0993b54..fe27fbc 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -182,8 +182,9 @@ typedef int Py_ssize_clean_t; */ #if defined(_MSC_VER) -# if defined(PY_LOCAL_AGGRESSIVE) && !defined(Py_DEBUG) +# if defined(PY_LOCAL_AGGRESSIVE) /* enable more aggressive optimization for MSVC */ + /* active in both release and debug builds - see bpo-43271 */ # pragma optimize("gt", on) #endif /* ignore warnings if the compiler decides not to inline a function */ |