GH-96572: fix use after free in trace refs build mode (GH-96618)

(cherry picked from commit 67444902a0)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-09-06 11:28:18 -07:00 committed by GitHub
parent 26dc4dfac3
commit a389fdb095
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -44,7 +44,7 @@
# error "ceval.c must be build with Py_BUILD_CORE define for best performance"
#endif
#ifndef Py_DEBUG
#if !defined(Py_DEBUG) && !defined(Py_TRACE_REFS)
// 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.