[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting
STINNER Victor
report at bugs.python.org
Mon Jun 3 18:41:07 EDT 2019
STINNER Victor <vstinner at redhat.com> added the comment:
INADA-san wrote PR 13787 to disable opcache when Python is compiled in debug mode. Pablo and me approved the change, so I merged it.
Pablo wrote a more robust solution, PR 13789, to disable opcache only in regrtest, to look for memory leaks. But INADA-san had a good argument against this approach:
https://github.com/python/cpython/pull/13789#issuecomment-498449735
"The code object will be optimized only when ++co->co_opcache_flag == opcacheminruns. So decreasing min_runs by _setopcacheminruns()will cause some hot codes will be not optimized forever. I don't want to expose such switch."
I would prefer to keep this issue until a long term approach is designed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37146>
_______________________________________
More information about the Python-bugs-list
mailing list