[Bug libgcj/19823] java fails with non-executable memory

aj at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 10 13:16:00 GMT 2005


------- Additional Comments From aj at gcc dot gnu dot org  2005-02-10 06:11 -------
I agree, the USE_MMAP is not global.  I'm trying now the following patch to see 
whether we're really on the right track: 
============================================================ 
Index: boehm-gc/include/private/gcconfig.h 
--- boehm-gc/include/private/gcconfig.h 13 Oct 2004 10:34:21 -0000      1.39 
+++ boehm-gc/include/private/gcconfig.h 10 Feb 2005 06:08:42 -0000 
@@ -1888,6 +1888,10 @@ 
 #   endif 
 # endif 
 
+#if defined(LINUX) 
+# define USE_MMAP 
+#endif 
+ 
 #if defined(LINUX) && defined(USE_MMAP) 
     /* The kernel may do a somewhat better job merging mappings etc.   */ 
     /* with anonymous mappings.                                               
*/ 
 
If you have a patch for sbrk usage, I can try that one also. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-10 06:11:14
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19823



More information about the Gcc-bugs mailing list