Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Introduce MALLOC_NOINLINE, which mirrors the effect ...



details:   https://anonhg.NetBSD.org/src/rev/5b819cb048d6
branches:  trunk
changeset: 533610:5b819cb048d6
user:      abs <abs%NetBSD.org@localhost>
date:      Fri Jul 05 13:05:14 2002 +0000

description:
Introduce MALLOC_NOINLINE, which mirrors the effect of DIAGNOSTIC
and similar in making MALLOC/FREE not inline. Saves 11k on acorn26
FOURMEG config.

diffstat:

 sys/sys/malloc.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3d610fcb8891 -r 5b819cb048d6 sys/sys/malloc.h
--- a/sys/sys/malloc.h  Fri Jul 05 10:46:44 2002 +0000
+++ b/sys/sys/malloc.h  Fri Jul 05 13:05:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: malloc.h,v 1.78 2002/07/05 06:54:45 gmcgarry Exp $     */
+/*     $NetBSD: malloc.h,v 1.79 2002/07/05 13:05:14 abs Exp $  */
 
 /*
  * Copyright (c) 1987, 1993
@@ -417,7 +417,7 @@
  * Macro versions for the usual cases of malloc/free
  */
 #if defined(KMEMSTATS) || defined(DIAGNOSTIC) || defined(_LKM) || \
-    defined(MALLOCLOG) || defined(LOCKDEBUG)
+    defined(MALLOCLOG) || defined(LOCKDEBUG) || defined(MALLOC_NOINLINE)
 #define        MALLOC(space, cast, size, type, flags) \
        (space) = (cast)malloc((u_long)(size), (type), (flags))
 #define        FREE(addr, type) free((caddr_t)(addr), (type))



Home | Main Index | Thread Index | Old Index