David Daney writes:
> This is the test case for PR26858 and another PR to be named in the future.
This one is going to be quite interesting to fix. I think we should
start some sort of conversation with kernel engineers and Hans Boehm
to see what can be done.
One thing that immediately occurs to me is to return to using sbrk()
to get memory pages for the heap, but that fails when creating
trampolines because the memory doesn't have execute permission set.
However, we could use sbrk() and then alter the page permissions with
mprotect(). I see nothing that says we're allowed to do this, but I'm
fairly sure it will work.