avoid sbrk(), which does not work with mprotect()

svn: r16832
This commit is contained in:
Matthew Flatt 2009-11-17 17:29:18 +00:00
parent cd3f1c439e
commit c5ac31e88d

View File

@ -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);