From f400b397c5d995dc867f18139d113c9c58a5a0ab Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 17 Nov 2009 17:29:18 +0000 Subject: [PATCH] avoid sbrk(), which does not work with mprotect() svn: r16832 --- os_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0