This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Aaron Hall, benjamin.peterson, thatiparthy, vstinner
Date 2018-10-25.09:11:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
On Windows, a Debug build doesn't inline Py_INCREF/DECREF even if it uses __forceinline. I looked at the Py_IncRef() and Py_DecRef() assembly in Visual Studio using a breakpoint.

Using /Ob1, Py_INCREF/DECREF are inlined as expected. I set this option in the pythoncore project.

Do you think that I should modify the 38 other projects of the pcbuild solution to enable /Ob1 in debug build?


Inline Functions (C++):

-Od: disable optimization ("d" stands for Debug)

/Ob (Inline Function Expansion):
Date User Action Args
2018-10-25 09:11:10vstinnersetrecipients: + vstinner, benjamin.peterson, thatiparthy, Aaron Hall
2018-10-25 09:11:10vstinnersetmessageid: <>
2018-10-25 09:11:10vstinnerlinkissue35059 messages
2018-10-25 09:11:10vstinnercreate