bjorn3 opened PR #13180 from bjorn3:cranelift_jit_memory_cleanup to bytecodealliance:main:
This was previously not done with the theory that using the regular heap allocator could be faster. We now have an arena memory provider and using mmap is necessary anyway when SELinux is enabled. I don't think the benefits outweight the code complexity cost. Also use memmap2 on Windows too in cranelift-jit.
Fixes https://github.com/bytecodealliance/wasmtime/issues/4986
bjorn3 requested fitzgen for a review on PR #13180.
bjorn3 requested wasmtime-compiler-reviewers for a review on PR #13180.
fitzgen submitted PR review:
Thanks!
bjorn3 updated PR #13180.
bjorn3 commented on PR #13180:
CI passed
github-actions[bot] added the label cranelift on PR #13180.
alexcrichton added PR #13180 Always use mmap in cranelift-jit to the merge queue.
alexcrichton merged PR #13180.
alexcrichton removed PR #13180 Always use mmap in cranelift-jit from the merge queue.
Last updated: May 03 2026 at 22:13 UTC