[issue45115] Windows: enable compiler optimizations when building Python in debug mode
STINNER Victor
report at bugs.python.org
Mon Sep 6 11:26:42 EDT 2021
STINNER Victor <vstinner at python.org> added the comment:
This change is motivated by my PR 28128 which converts the Py_TYPE() macro to a static inline function. The problem is that by default, MSC disables inlining and test_exceptions does crash with a stack overflow, since my change increases the usage of the stack memory: see bpo-44348.
By the problem is wider than just Py_TYPE().
See also bpo-45094: "Consider using __forceinline and __attribute__((always_inline)) on static inline functions (Py_INCREF, Py_TYPE) for debug builds".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45115>
_______________________________________
More information about the Python-bugs-list
mailing list