Browse Source

Use _MAX_PAGE_SHIFT, rather than #ifdef mips64

ok guenther kettenis
OPENBSD_6_3
deraadt 6 years ago
parent
commit
02c2718077
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      src/lib/libc/stdlib/malloc.c

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

@ -1,4 +1,4 @@
/* $OpenBSD: malloc.c,v 1.245 2018/02/07 18:58:30 otto Exp $ */
/* $OpenBSD: malloc.c,v 1.246 2018/03/05 01:32:32 deraadt Exp $ */
/*
* Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@ -46,11 +46,7 @@
#include "thread_private.h"
#include <tib.h>
#if defined(__mips64__)
#define MALLOC_PAGESHIFT (14U)
#else
#define MALLOC_PAGESHIFT (PAGE_SHIFT)
#endif
#define MALLOC_PAGESHIFT _MAX_PAGE_SHIFT
#define MALLOC_MINSHIFT 4
#define MALLOC_MAXSHIFT (MALLOC_PAGESHIFT - 1)


Loading…
Cancel
Save