[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-libjit] WIN32 PATCH: Call VirtualFree with correct arguments.
From: |
GARCIA DE SORIA LUCENA, JUAN JESUS |
Subject: |
[Dotgnu-libjit] WIN32 PATCH: Call VirtualFree with correct arguments. |
Date: |
Tue, 27 May 2008 19:21:18 +0200 |
Ooops!
My previous patch implementing jit_malloc_exec()/jit_free_exec() via
VirtualAlloc()/VirtualFree() had a problem. It wouldn't actually free
the memory allocated via VirtualAlloc().
As stated in
http://msdn.microsoft.com/en-us/library/aa366892(VS.85).aspx, actually
in the specific case needed dwSize must be 0 and dwFreeType must be
MEM_RELEASE only.
I enclose a patch fixing the fix and preventing the leak of all the
executable memory in Windows.
Thanks a lot for your forgiveness ;-)
Regards,
Juan Jesus.
win32-oops-VirtualFree-fix-usage.patch
Description: win32-oops-VirtualFree-fix-usage.patch
- [Dotgnu-libjit] WIN32 PATCH: Call VirtualFree with correct arguments.,
GARCIA DE SORIA LUCENA, JUAN JESUS <=