bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split()#3866
Conversation
when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.
|
I wrote a patch using "et#" PyArg format to prevent one strlen(), but I don't think that it's worth it. I expect that most proceeded strings are smaller than 100 characters, and strlen() is heavily optimized ;-) |
|
Before creating this PR I wrote a patch which got rid of "et" and creating a temporary copy on the heap. But I think it should be only in 3.7. As a bug fix I choose simpler solution. |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6. |
|
GH-3874 is a backport of this pull request to the 3.6 branch. |
…d split() (pythonGH-3866) when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests. (cherry picked from commit 27c623c)
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…d split() (pythonGH-3866) when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.. (cherry picked from commit 27c623c)
|
GH-3876 is a backport of this pull request to the 2.7 branch. |
when pass a string larger than 2 GiB.
Decrease memory requirements for Tcl's bigmem tests.
https://bugs.python.org/issue31675