[Bug libgcj/19823] java fails with non-executable memory

mckinlay at redhat dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 9 09:19:00 GMT 2005


------- Additional Comments From mckinlay at redhat dot com  2005-02-09 04:11 -------
Note that TestProxy is failing too, which does seem to indicate a problem with
ffi closures.

boehm-gc does have code to call mprotect() on its heap (see PROTECT/UNPROTECT in
os_dep.c), but it isn't used because we don't build the GC with MPROTECT_VDB.

It sounds like, if the heap is now not exec-enabled by default, that the GC will
have to unconditionally call mprotect() in order to set PROT_EXEC when
initializing its heap?

cc'ing Hans for his comments.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Hans dot Boehm at hp dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19823



More information about the Java-prs mailing list