Subject: Re: kern/13232: POOL_DIAGNOSTIC && pool.h
To: Assar Westerlund <assar@netbsd.org>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
List: tech-kern
Date: 06/19/2001 15:06:35
> It used to be that without POOL_DIAGNOSTIC you directly called
> pool_get, pool_put, and pool_reclaim.  With POOL_DIAGNOSTIC, macros
> were added that sent in __FILE__ and __LINE__ as separate parameters
> to the functions (now with an underscore in front).  My patch made
> that always be the case.  If POOL_DIAGNOSTIC is not defined, these
> just get ignored.  

Assar,

they may be ignored in the called routine, but the caller still has to
load up argument registers / push arguments containing them; that's
where the performance hit was..

pool_get is called *VERY* frequently.

					- Bill