[issue33803] contextvars: hamt_alloc() must initialize h_root and h_count fields
STINNER Victor
report at bugs.python.org
Fri Jun 8 02:51:36 EDT 2018
STINNER Victor <vstinner at redhat.com> added the comment:
> I'd love to have a flag to turn this on, or maybe we should enable it for -X dev.
Well, there is already a public API to do it manually: gc.set_threshold(5).
I'm not sure about a threshold of 5 for -X dev: that's very very low and so kill performances. -X dev can be slower, not but 10x slower for example. I didn't measure performance.
Such bug is rare, so I'm not sure about putting gc.set_threshold(5) in -X dev.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33803>
_______________________________________
More information about the Python-bugs-list
mailing list