[pypy-svn] r68645 - pypy/branch/gc-arena/pypy/rpython/lltypesystem

afa at codespeak.net afa at codespeak.net
Mon Oct 19 18:21:11 CEST 2009


Author: afa
Date: Mon Oct 19 18:21:11 2009
New Revision: 68645

Modified:
   pypy/branch/gc-arena/pypy/rpython/lltypesystem/llarena_nt.py
Log:
Really call VirtualAlloc when we mean to


Modified: pypy/branch/gc-arena/pypy/rpython/lltypesystem/llarena_nt.py
==============================================================================
--- pypy/branch/gc-arena/pypy/rpython/lltypesystem/llarena_nt.py	(original)
+++ pypy/branch/gc-arena/pypy/rpython/lltypesystem/llarena_nt.py	Mon Oct 19 18:21:11 2009
@@ -71,10 +71,10 @@
     pass
 
 def _virtual_alloc(arena_addr, nbytes, flags, protect):
-    result = VirtualFree(arena_addr,
-                         rffi.cast(rffi.SIZE_T, nbytes),
-                         rffi.cast(DWORD, flags),
-                         rffi.cast(DWORD, protect))
+    result = VirtualAlloc(arena_addr,
+                          rffi.cast(rffi.SIZE_T, nbytes),
+                          rffi.cast(DWORD, flags),
+                          rffi.cast(DWORD, protect))
     if result == llmemory.NULL:
         raise VirtualAllocMemoryError
     return result



More information about the Pypy-commit mailing list