This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [Patch] Testcase for PR26858
- From: Andrew Haley <aph at redhat dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 25 Mar 2006 10:27:28 +0000
- Subject: Re: [Patch] Testcase for PR26858
- References: <4424A099.2000902@avtrex.com>
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.
Andrew.