tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PAX mprotect and JIT



On Sun, Feb 26, 2017 at 03:27:05PM +0100, Kamil Rytarowski wrote:
> Is there a room to add this nomprotect allocator in libutil(3) to make
> it convenient to reuse out of libffi?

Most libraries doing JIT already know how to deal with segration like
this and have their own memory management for this purpose. I don't
think adding another one really buys much. Even overhead like keeping a
full page per closure like with the dumb implementation here is
typically not even measurable.

Joerg


Home | Main Index | Thread Index | Old Index