diff options
author | dg <dg@FreeBSD.org> | 1994-10-17 10:43:56 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-10-17 10:43:56 +0000 |
commit | ccce4955a0ff29bbb4260994a7aac499d92ac39f (patch) | |
tree | ba5f9770dfd21fff32655b7d0ea93712ecb29046 /sys/vm/vm_page.h | |
parent | 7333a06cbb3a2b27d74869d13892f828f4378e42 (diff) | |
download | FreeBSD-src-ccce4955a0ff29bbb4260994a7aac499d92ac39f.zip FreeBSD-src-ccce4955a0ff29bbb4260994a7aac499d92ac39f.tar.gz |
Put sanity check for negative hold count into #ifdef DIAGNOSTIC so that
it doesn't consume an extra 3k of kernel text because of gcc's bogus
inlining code.
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index cfa41c1..cfbfce2 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_page.h,v 1.6 1994/09/27 18:00:29 davidg Exp $ + * $Id: vm_page.h,v 1.7 1994/10/05 09:48:44 davidg Exp $ */ /* @@ -265,8 +265,12 @@ static inline void vm_page_unhold(mem) vm_page_t mem; { +#ifdef DIAGNOSTIC if( --mem->hold_count < 0) panic("vm_page_unhold: hold count < 0!!!"); +#else + --mem->hold_count; +#endif } #endif /* KERNEL */ |