diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-12-18 12:03:54 +0000 | 
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-12-18 12:03:54 +0000 | 
| commit | 9100bbac3d3394fc6eecfe19ee1180b43553d663 (patch) | |
| tree | 168d0d3777f60db7ad24f558f8f13e53d904354f /lib/libc/stdlib | |
| parent | 7c3efc4023f045280d6890da942c3614db121528 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/malloc.c | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index cc240455b8bc..d9067748a73d 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -6,7 +6,7 @@   * this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp   * ----------------------------------------------------------------------------   * - * $Id: malloc.c,v 1.6 1995/10/22 14:47:00 phk Exp $ + * $Id: malloc.c,v 1.7 1995/12/11 14:28:12 peter Exp $   *   */ @@ -595,6 +595,12 @@ malloc_init ()      /* Been here, done that */      initialized++; + +    /* +     * This is a nice hack from Kaleb Keithly (kaleb@x.org). +     * We can sbrk(2) further back when we keep this on a low address. +     */ +    px = (struct pgfree *) malloc (sizeof *px);  }  /* @@ -990,7 +996,7 @@ free_pages(void *ptr, int index, struct pginfo *info)  	    pf = px;  	    px = 0;  	} else if (pf->end == ptr ) { -	    /* Append to the previuos entry */ +	    /* Append to the previous entry */  	    pf->end += l;  	    pf->size += l;  	    if (pf->next && pf->end == pf->next->page ) {  | 
