summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Flatt <mflatt@racket-lang.org>2009-11-17 17:29:18 +0000
committerIvan Maidanski <ivmai@mail.ru>2013-11-03 13:44:53 +0400
commitf400b397c5d995dc867f18139d113c9c58a5a0ab (patch)
tree37e8e7e00da42452e771110bce5ffc09eacfda46
parentf7dc9df2df3aa7031f4951e843c3e5d3af768da0 (diff)
downloadbdwgc-f400b397c5d995dc867f18139d113c9c58a5a0ab.tar.gz
avoid sbrk(), which does not work with mprotect()
svn: r16832
-rw-r--r--os_dep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os_dep.c b/os_dep.c
index 86d94559..c6d4fcbb 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -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);