[pypy-dev] Patches for Pypy under cygwin

Armin Rigo arigo at tunes.org
Mon Jun 11 13:59:55 CEST 2012


Hi,

On Sun, Jun 10, 2012 at 11:12 AM, Amaury Forgeot d'Arc
<amauryfa at gmail.com> wrote:
> I think memory allocated for JIT must be marked with PROT_EXEC (it contains
> machine code),
> so malloc() is not an option.

Exactly.  On Linux it would work, because you can use mprotect() to
make even malloc()ed memory executable, but I doubt this non-Posix
extension works on cygwin.  What might work instead would be using the
Windows API instead of the POSIX one.  In pypy/rlib/rmmap.py, look for
"def alloc" and "def free": there are the two versions.


A bientôt,

Armin.


More information about the pypy-dev mailing list