summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-07-15 13:43:59 (GMT)
committerGitHub <noreply@github.com>2021-07-15 13:43:59 (GMT)
commit4cb7263f0c7199280c01d911a1e7021568b548fd (patch)
tree18163178a6b562625431d44fb2ffccb8e0a9ee3a /Python/ceval.c
parentf333ab0f2edec26a769ed558263ac662e5475451 (diff)
downloadcpython-4cb7263f0c7199280c01d911a1e7021568b548fd.zip
cpython-4cb7263f0c7199280c01d911a1e7021568b548fd.tar.gz
cpython-4cb7263f0c7199280c01d911a1e7021568b548fd.tar.bz2
Remove sys._deactivate_opcache() now that is not needed (GH-27154)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 1467c12..a6eb83a 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -106,19 +106,6 @@ static long dxp[256];
#endif
#endif
-/* per opcode cache */
-static int opcache_min_runs = 1024; /* create opcache when code executed this many times */
-#define OPCODE_CACHE_MAX_TRIES 20
-
-// This function allows to deactivate the opcode cache. As different cache mechanisms may hold
-// references, this can mess with the reference leak detector functionality so the cache needs
-// to be deactivated in such scenarios to avoid false positives. See bpo-3714 for more information.
-void
-_PyEval_DeactivateOpCache(void)
-{
- opcache_min_runs = 0;
-}
-
#ifndef NDEBUG
/* Ensure that tstate is valid: sanity check for PyEval_AcquireThread() and
PyEval_RestoreThread(). Detect if tstate memory was freed. It can happen