On Sun, Feb 26, 2017 at 02:09:08PM +0100, Joerg Sonnenberger wrote: > The mremap() dance is only desirable for multi-threaded JIT. If you > compile a module at a time before making it visible, just a plain > mprotect is enough. I would prefer to not allow toggling back and forth via mprotect() at all. Martin