We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f0a30f commit eddef86Copy full SHA for eddef86
Python/ceval.c
@@ -103,7 +103,14 @@ static long dxp[256];
103
#endif
104
105
/* per opcode cache */
106
+#ifdef Py_DEBUG
107
+// --with-pydebug is used to find memory leak. opcache makes it harder.
108
+// So we disable opcache when Py_DEBUG is defined.
109
+// See bpo-37146
110
+#define OPCACHE_MIN_RUNS 0 /* disable opcache */
111
+#else
112
#define OPCACHE_MIN_RUNS 1024 /* create opcache when code executed this time */
113
+#endif
114
#define OPCACHE_STATS 0 /* Enable stats */
115
116
#if OPCACHE_STATS
0 commit comments