gh-110481: Implement biased reference counting (gh-110764)
This commit is contained in:
@@ -46,12 +46,13 @@
|
||||
# error "ceval.c must be build with Py_BUILD_CORE define for best performance"
|
||||
#endif
|
||||
|
||||
#if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS)
|
||||
#if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS) && !defined(Py_NOGIL)
|
||||
// GH-89279: The MSVC compiler does not inline these static inline functions
|
||||
// in PGO build in _PyEval_EvalFrameDefault(), because this function is over
|
||||
// the limit of PGO, and that limit cannot be configured.
|
||||
// Define them as macros to make sure that they are always inlined by the
|
||||
// preprocessor.
|
||||
// TODO: implement Py_DECREF macro for Py_NOGIL
|
||||
|
||||
#undef Py_DECREF
|
||||
#define Py_DECREF(arg) \
|
||||
|
||||
Reference in New Issue
Block a user