[issue29234] Disable inlining of _PyStack_AsTuple() to reduce the stack consumption

STINNER Victor report at bugs.python.org
Tue Jan 10 19:26:08 EST 2017


STINNER Victor added the comment:

noinline_msvs.patch: implement _Py_NO_INLINE for Microsoft Visual Studio

#elif defined(_MSC_VER)
#  define _Py_NO_INLINE __declspec(noinline)

I didn't push this change because I don't have access to a Windows VM yet.

@Steve: Does noinline_msvs.patch look good to you?

I decided to make the macro private because I don't know if _Py_NO_INLINE can be combined with PyAPI_FUNC() which also uses __declspec(): __declspec(dllexport).

Is it possible to use __declspec() multiple times per function declaration?

----------
keywords: +patch
nosy: +steve.dower
Added file: http://bugs.python.org/file46248/noinline_msvs.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29234>
_______________________________________


More information about the Python-bugs-list mailing list