diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-02-28 22:41:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-28 22:41:09 (GMT) |
commit | af5fa13ef6f648fc7a7a33a7556db13887e7d643 (patch) | |
tree | faa0ffb9e99a6ae822b9c464a7cb044a8dc8e94f /Python/clinic | |
parent | e8f5ddd33e44dae4e0121f87a7bf92d754807e49 (diff) | |
download | cpython-af5fa13ef6f648fc7a7a33a7556db13887e7d643.zip cpython-af5fa13ef6f648fc7a7a33a7556db13887e7d643.tar.gz cpython-af5fa13ef6f648fc7a7a33a7556db13887e7d643.tar.bz2 |
bpo-37146: Deactivate opcode cache only when using huntrleaks in the test suite (GH-24643)
Diffstat (limited to 'Python/clinic')
-rw-r--r-- | Python/clinic/sysmodule.c.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Python/clinic/sysmodule.c.h b/Python/clinic/sysmodule.c.h index addd589..04c8481 100644 --- a/Python/clinic/sysmodule.c.h +++ b/Python/clinic/sysmodule.c.h @@ -938,6 +938,24 @@ sys_getandroidapilevel(PyObject *module, PyObject *Py_UNUSED(ignored)) #endif /* defined(ANDROID_API_LEVEL) */ +PyDoc_STRVAR(sys__deactivate_opcache__doc__, +"_deactivate_opcache($module, /)\n" +"--\n" +"\n" +"Deactivate the opcode cache permanently"); + +#define SYS__DEACTIVATE_OPCACHE_METHODDEF \ + {"_deactivate_opcache", (PyCFunction)sys__deactivate_opcache, METH_NOARGS, sys__deactivate_opcache__doc__}, + +static PyObject * +sys__deactivate_opcache_impl(PyObject *module); + +static PyObject * +sys__deactivate_opcache(PyObject *module, PyObject *Py_UNUSED(ignored)) +{ + return sys__deactivate_opcache_impl(module); +} + #ifndef SYS_GETWINDOWSVERSION_METHODDEF #define SYS_GETWINDOWSVERSION_METHODDEF #endif /* !defined(SYS_GETWINDOWSVERSION_METHODDEF) */ @@ -965,4 +983,4 @@ sys_getandroidapilevel(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef SYS_GETANDROIDAPILEVEL_METHODDEF #define SYS_GETANDROIDAPILEVEL_METHODDEF #endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */ -/*[clinic end generated code: output=bbc4963fe86a29d9 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=68c62b9ca317a0c8 input=a9049054013a1b77]*/ |