[Gc] Allocating Executable Memory

Andrew Haley aph at redhat.com
Wed Jun 9 02:05:01 PDT 2010


On 08/06/10 22:33, Noah Lavine wrote:
> Dear libgc developers,
> 
> I'm interested in managing executable memory with libgc, as part of a
> project to add a JIT compilation system to Guile Scheme. As far as I
> can tell, libgc does not currently support this. It seems like the
> cleanest way for Guile to do this is to add functions to libgc to
> request that allocated memory be executable, and perhaps have libgc
> manage the executable memory as a separate pool than the
> non-executable.

Hmm, in practice many (most?) Linux distros disallow the creation of
memory pages with both execute and write permission.  So, your best
bet is probably to do the mapping and permission setting yourself, and
just put references to the pages in gc'd memory.

Andrew.


More information about the Gc mailing list