File tree 4 files changed +1
-50
lines changed
4 files changed +1
-50
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ def setup_tests(ns):
63
63
64
64
if ns .huntrleaks :
65
65
unittest .BaseTestSuite ._cleanup = False
66
- sys ._deactivate_opcache ()
67
66
68
67
if ns .memlimit is not None :
69
68
support .set_memlimit (ns .memlimit )
Original file line number Diff line number Diff line change @@ -106,19 +106,6 @@ static long dxp[256];
106
106
#endif
107
107
#endif
108
108
109
- /* per opcode cache */
110
- static int opcache_min_runs = 1024 ; /* create opcache when code executed this many times */
111
- #define OPCODE_CACHE_MAX_TRIES 20
112
-
113
- // This function allows to deactivate the opcode cache. As different cache mechanisms may hold
114
- // references, this can mess with the reference leak detector functionality so the cache needs
115
- // to be deactivated in such scenarios to avoid false positives. See bpo-3714 for more information.
116
- void
117
- _PyEval_DeactivateOpCache (void )
118
- {
119
- opcache_min_runs = 0 ;
120
- }
121
-
122
109
#ifndef NDEBUG
123
110
/* Ensure that tstate is valid: sanity check for PyEval_AcquireThread() and
124
111
PyEval_RestoreThread(). Detect if tstate memory was freed. It can happen
Original file line number Diff line number Diff line change @@ -1971,22 +1971,6 @@ sys_getandroidapilevel_impl(PyObject *module)
1971
1971
}
1972
1972
#endif /* ANDROID_API_LEVEL */
1973
1973
1974
-
1975
- /*[clinic input]
1976
- sys._deactivate_opcache
1977
-
1978
- Deactivate the opcode cache permanently
1979
- [clinic start generated code]*/
1980
-
1981
- static PyObject *
1982
- sys__deactivate_opcache_impl (PyObject * module )
1983
- /*[clinic end generated code: output=00e20982bd012122 input=501eac146735ccf9]*/
1984
- {
1985
- _PyEval_DeactivateOpCache ();
1986
- Py_RETURN_NONE ;
1987
- }
1988
-
1989
-
1990
1974
static PyMethodDef sys_methods [] = {
1991
1975
/* Might as well keep this in alphabetic order */
1992
1976
SYS_ADDAUDITHOOK_METHODDEF
@@ -2040,7 +2024,6 @@ static PyMethodDef sys_methods[] = {
2040
2024
SYS_GET_ASYNCGEN_HOOKS_METHODDEF
2041
2025
SYS_GETANDROIDAPILEVEL_METHODDEF
2042
2026
SYS_UNRAISABLEHOOK_METHODDEF
2043
- SYS__DEACTIVATE_OPCACHE_METHODDEF
2044
2027
{NULL, NULL } /* sentinel */
2045
2028
};
2046
2029
You can’t perform that action at this time.
0 commit comments