diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2005-02-16 04:10:42 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2005-02-16 04:10:42 +0000 |
commit | 5909b0346cca73468ebde3e747bbe21453364a03 (patch) | |
tree | 314f8a11ca03d334447c50d10982b23142d3c8de /boehm-gc/include | |
parent | 1dd8ce20fb5066513a09788b4bdc76b2d98b0ba2 (diff) | |
download | gcc-5909b0346cca73468ebde3e747bbe21453364a03.zip gcc-5909b0346cca73468ebde3e747bbe21453364a03.tar.gz gcc-5909b0346cca73468ebde3e747bbe21453364a03.tar.bz2 |
re PR libgcj/19823 (java fails with non-executable memory)
2005-02-15 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/19823
* configure.host: Set gc_use_mmap on *-linux*.
* configure.ac: Define USE_MMAP if gc_use_mmap is set.
* include/private/gc_priv.h: Include gc_config.h.
* configure, include/gc_config.h.in: Rebuilt.
From-SVN: r95094
Diffstat (limited to 'boehm-gc/include')
-rw-r--r-- | boehm-gc/include/gc_config.h.in | 3 | ||||
-rw-r--r-- | boehm-gc/include/private/gc_priv.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/boehm-gc/include/gc_config.h.in b/boehm-gc/include/gc_config.h.in index 60ffb97..92f1b2c 100644 --- a/boehm-gc/include/gc_config.h.in +++ b/boehm-gc/include/gc_config.h.in @@ -145,6 +145,9 @@ /* define GC_local_malloc() & GC_local_malloc_atomic() */ #undef THREAD_LOCAL_ALLOC +/* use MMAP instead of sbrk to get new memory */ +#undef USE_MMAP + /* POSIX version of C Source */ #undef _POSIX_C_SOURCE diff --git a/boehm-gc/include/private/gc_priv.h b/boehm-gc/include/private/gc_priv.h index e5bd52b..c336ce5 100644 --- a/boehm-gc/include/private/gc_priv.h +++ b/boehm-gc/include/private/gc_priv.h @@ -19,6 +19,10 @@ # ifndef GC_PRIVATE_H # define GC_PRIVATE_H +/* Autoconf definitions. */ +/* FIXME: This should really be included directly from each .c file. */ +#include <gc_config.h> + #if defined(mips) && defined(SYSTYPE_BSD) && defined(sony_news) /* sony RISC NEWS, NEWSOS 4 */ # define BSD_TIME |