]> granicus.if.org Git - gc/commitdiff
avoid sbrk(), which does not work with mprotect()
authorMatthew Flatt <mflatt@racket-lang.org>
Tue, 17 Nov 2009 17:29:18 +0000 (17:29 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 3 Nov 2013 09:44:53 +0000 (13:44 +0400)
svn: r16832

os_dep.c

index 86d94559ca338649f31064b05867b96c5a60bdba..c6d4fcbb2221544dc75075a5d37c18e05e3a7b6a 100644 (file)
--- 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);