diff options
author | Matthew Flatt <mflatt@racket-lang.org> | 2009-11-17 17:29:18 +0000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-11-03 13:44:53 +0400 |
commit | f400b397c5d995dc867f18139d113c9c58a5a0ab (patch) | |
tree | 37e8e7e00da42452e771110bce5ffc09eacfda46 | |
parent | f7dc9df2df3aa7031f4951e843c3e5d3af768da0 (diff) | |
download | bdwgc-f400b397c5d995dc867f18139d113c9c58a5a0ab.tar.gz |
avoid sbrk(), which does not work with mprotect()
svn: r16832
-rw-r--r-- | os_dep.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1860,7 +1860,7 @@ ptr_t GC_unix_sbrk_get_mem(word bytes) /* By default, we try both sbrk and mmap, in that order. */ ptr_t GC_unix_get_mem(word bytes) { - static GC_bool sbrk_failed = FALSE; + static GC_bool sbrk_failed = TRUE; /* PLTSCHEME: don't use sbrk */ ptr_t result = 0; if (!sbrk_failed) result = GC_unix_sbrk_get_mem(bytes); |