Re: erlang -> asmjit -> mremap questions/bugs

2023-03-01 Thread Thomas Klausner
On Wed, Mar 01, 2023 at 05:48:08PM +0300, Valeriy E. Ushakov wrote: > On Wed, Mar 01, 2023 at 15:29:27 +0100, Thomas Klausner wrote: > > > It seems the problem is that mmap() in the mremap(2) man page example > > (which was used to implement the asmjit version) is not using > > MAP_SHARED. > > >

Re: erlang -> asmjit -> mremap questions/bugs

2023-03-01 Thread Valery Ushakov
On Wed, Mar 01, 2023 at 15:29:27 +0100, Thomas Klausner wrote: > It seems the problem is that mmap() in the mremap(2) man page example > (which was used to implement the asmjit version) is not using > MAP_SHARED. > > - I'd like to add MAP_SHARED in the mmap() call in the mremap(2) man > page

erlang -> asmjit -> mremap questions/bugs

2023-03-01 Thread Thomas Klausner
Hi! Erlang comes with a JIT: asmjit. The current version doesn't work with PaX MPROTECT. I filed a bug report and asmjit added code using mremap(). https://github.com/asmjit/asmjit/blob/master/src/asmjit/core/virtmem.cpp#L619 The asmjit self-tests work, but in erlang with the new version there