Don't inline malloc/free if LOCKDEBUG is on.
This commit is contained in:
parent
d3aef3ad38
commit
f71858b51b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: malloc.h,v 1.51 2000/06/03 18:22:38 matt Exp $ */
|
||||
/* $NetBSD: malloc.h,v 1.52 2000/06/24 22:24:15 pk Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
|
@ -378,7 +378,7 @@ struct kmembuckets {
|
|||
* Macro versions for the usual cases of malloc/free
|
||||
*/
|
||||
#if defined(KMEMSTATS) || defined(DIAGNOSTIC) || defined(_LKM) || \
|
||||
defined(MALLOCLOG)
|
||||
defined(MALLOCLOG) || defined(LOCKDEBUG)
|
||||
#define MALLOC(space, cast, size, type, flags) \
|
||||
(space) = (cast)malloc((u_long)(size), type, flags)
|
||||
#define FREE(addr, type) free((caddr_t)(addr), type)
|
||||
|
|
Loading…
Reference in New Issue