Author: Edd Barrett <[email protected]>
Branch: asmmemmgr-for-code-only
Changeset: r86654:8f8a16f423e9
Date: 2016-08-28 20:46 +0100
http://bitbucket.org/pypy/pypy/changeset/8f8a16f423e9/
Log: Fix another W^X violation in test logic.
diff --git a/rpython/jit/backend/llsupport/asmmemmgr.py
b/rpython/jit/backend/llsupport/asmmemmgr.py
--- a/rpython/jit/backend/llsupport/asmmemmgr.py
+++ b/rpython/jit/backend/llsupport/asmmemmgr.py
@@ -301,8 +301,11 @@
self.get_relative_pos = self._data.__len__
def plain_copy_to_raw_memory(addr):
dst = rffi.cast(rffi.CCHARP, addr)
+ size = len(self._data)
+ rmmap.set_pages_writable(dst, size)
for i, c in enumerate(self._data):
dst[i] = c
+ rmmap.set_pages_executable(dst, size)
self._copy_to_raw_memory = plain_copy_to_raw_memory
def insert_gcroot_marker(self, mark):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit