bug#47429: Re 47429:allocating JIT code buffer failed: Permission denied

Jeffrey Walton <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <CAH8yC8kGzeu3cWDNR+2xYNovPB4D3iV3Z8AY9HwYHmKi1aRK5g@mail.gmail.com>
This looks like the Apple article of interest:
https://developer.apple.com/documentation/apple-silicon/porting-just-in-time-compilers-to-apple-silicon.

According to the article, the page should be mapped with MAP_JIT.
Before instructions are written, pthread_jit_write_protect_np should
be called. After writing the jitted code, call
pthread_jit_write_protect_np again and call sys_icache_invalidate.

It looks like the OpenJDK folks are also experiencing similar issues.

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.