Browse Source

Reduce the leeway malloc allows when moving allocations to the end of

a page to 0. P default will be changed in a separate commit.
ok millert@ art@ krw@
OPENBSD_4_5
otto 16 years ago
parent
commit
c2a4892aa1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libc/stdlib/malloc.c

+ 2
- 2
src/lib/libc/stdlib/malloc.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: malloc.c,v 1.108 2008/11/13 07:38:45 otto Exp $ */
/* $OpenBSD: malloc.c,v 1.109 2008/11/20 09:01:24 otto Exp $ */
/*
* Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
*
@ -70,7 +70,7 @@
* This is the extra headroom we allow. Set to zero to be the most
* strict.
*/
#define MALLOC_LEEWAY 16
#define MALLOC_LEEWAY 0
#define PAGEROUND(x) (((x) + (MALLOC_PAGEMASK)) & ~MALLOC_PAGEMASK)


Loading…
Cancel
Save