Hi,

On Sun, Jun 10, 2012 at 11:12 AM, Amaury Forgeot d'Arc
<amaur...@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.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to