bpo-40882: Fix a memory leak in SharedMemory on Windows#20684
bpo-40882: Fix a memory leak in SharedMemory on Windows#20684zooba merged 3 commits intopython:mainfrom
Conversation
In multiprocessing.shared_memory.SharedMemory(), the temporary view returned by MapViewOfFile() should be unmapped when it is no longer needed.
|
@zooba, should this be merged? Thanks! |
|
@zooba Thanks, |
|
@ZackerySpytz This has merge conflicts now. |
…82-mp-SharedMemory-leak-win
|
I fixed the merge conflicts. |
|
Thanks @ZackerySpytz for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Thanks @ZackerySpytz for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Sorry, @ZackerySpytz and @zooba, I could not cleanly backport this to |
|
Sorry @ZackerySpytz and @zooba, I had trouble checking out the |
|
Thanks @ZackerySpytz for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Sorry, @ZackerySpytz and @zooba, I could not cleanly backport this to |
|
Any volunteers to do the backport? I've got too many other things checked out right now to do it |
…nGH-20684) In multiprocessing.shared_memory.SharedMemory(), the temporary view returned by MapViewOfFile() should be unmapped when it is no longer needed.. (cherry picked from commit 85c128e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
Here it is for Python 3.10 #99911 |
|
GH-99911 is a backport of this pull request to the 3.10 branch. |
…nGH-20684) In multiprocessing.shared_memory.SharedMemory(), the temporary view returned by MapViewOfFile() should be unmapped when it is no longer needed.. (cherry picked from commit 85c128e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
…nGH-20684) In multiprocessing.shared_memory.SharedMemory(), the temporary view returned by MapViewOfFile() should be unmapped when it is no longer needed.. (cherry picked from commit 85c128e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
…nGH-20684) In multiprocessing.shared_memory.SharedMemory(), the temporary view returned by MapViewOfFile() should be unmapped when it is no longer needed. (cherry picked from commit 85c128e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
In multiprocessing.shared_memory.SharedMemory(), the temporary view returned by MapViewOfFile() should be unmapped when it is no longer needed. (cherry picked from commit 85c128e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
In multiprocessing.shared_memory.SharedMemory(), the temporary view returned by MapViewOfFile() should be unmapped when it is no longer needed. (cherry picked from commit 85c128e)
|
GH-99973 is a backport of this pull request to the 3.11 branch. |
|
Backport for 3.11 is here: #99973 |
) (#99973) bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684) In multiprocessing.shared_memory.SharedMemory(), the temporary view returned by MapViewOfFile() should be unmapped when it is no longer needed. (cherry picked from commit 85c128e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
In multiprocessing.shared_memory.SharedMemory(), the temporary view
returned by MapViewOfFile() should be unmapped when it is no longer
needed.
https://bugs.python.org/issue40882