summaryrefslogtreecommitdiffstats
path: root/lib/libm/common_source/cosh.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-03-20 21:12:04 +0000
committerjhb <jhb@FreeBSD.org>2002-03-20 21:12:04 +0000
commit2e425ee2fc74fd1bddb7f85e68599a682a2863fc (patch)
treefa3eed8e2b21cc26e95902d813d08e70311eee11 /lib/libm/common_source/cosh.c
parent715dfdbcbe8ff5e275313a83ef7be76229d87ebf (diff)
downloadFreeBSD-src-2e425ee2fc74fd1bddb7f85e68599a682a2863fc.zip
FreeBSD-src-2e425ee2fc74fd1bddb7f85e68599a682a2863fc.tar.gz
Change the way we ensure td_ucred is NULL if DIAGNOSTIC is defined.
Instead of caching the ucred reference, just go ahead and eat the decerement and increment of the refcount. Now that Giant is pushed down into crfree(), we no longer have to get Giant in the common case. In the case when we are actually free'ing the ucred, we would normally free it on the next kernel entry, so the cost there is not new, just in a different place. This also removse td_cache_ucred from struct thread. This is still only done #ifdef DIAGNOSTIC. [ missed this file in the previous commit ] Tested on: i386, alpha
Diffstat (limited to 'lib/libm/common_source/cosh.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud