-/* $OpenBSD: kern_malloc.c,v 1.143 2020/12/31 11:04:35 claudio Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.144 2021/02/23 13:50:16 jsg Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
/* NOTREACHED */
}
-/*
- * Round up a size to how much malloc would actually allocate.
- */
-size_t
-malloc_roundup(size_t sz)
-{
- if (sz > MAXALLOCSAVE)
- return round_page(sz);
-
- return (1 << BUCKETINDX(sz));
-}
-
#if defined(DDB)
void
-/* $OpenBSD: malloc.h,v 1.119 2019/11/28 16:23:11 guenther Exp $ */
+/* $OpenBSD: malloc.h,v 1.120 2021/02/23 13:50:16 jsg Exp $ */
/* $NetBSD: malloc.h,v 1.39 1998/07/12 19:52:01 augustss Exp $ */
/*
int sysctl_malloc(int *, u_int, void *, size_t *, void *, size_t,
struct proc *);
-size_t malloc_roundup(size_t);
void malloc_printit(int (*)(const char *, ...));
void poison_mem(void *, size_t);