Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm __predict_false() DIAGNOSTIC error checks.



details:   https://anonhg.NetBSD.org/src/rev/ce53b30222b5
branches:  trunk
changeset: 485931:ce53b30222b5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon May 08 23:11:53 2000 +0000

description:
__predict_false() DIAGNOSTIC error checks.

diffstat:

 sys/uvm/uvm_page_i.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 68399efce4a3 -r ce53b30222b5 sys/uvm/uvm_page_i.h
--- a/sys/uvm/uvm_page_i.h      Mon May 08 23:10:20 2000 +0000
+++ b/sys/uvm/uvm_page_i.h      Mon May 08 23:11:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page_i.h,v 1.12 2000/03/26 20:54:47 kleink Exp $   */
+/*     $NetBSD: uvm_page_i.h,v 1.13 2000/05/08 23:11:53 thorpej Exp $  */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -215,7 +215,7 @@
        }
        if ((pg->pqflags & PQ_INACTIVE) == 0) {
 #ifdef DIAGNOSTIC 
-               if (pg->wire_count)
+               if (__predict_false(pg->wire_count))
                        panic("uvm_pagedeactivate: caller did not check "
                            "wire count");
 #endif
@@ -311,7 +311,7 @@
 
        lcv = vm_physseg_find(atop(VM_PAGE_TO_PHYS(pg)), NULL);
 #ifdef DIAGNOSTIC
-       if (lcv == -1)
+       if (__predict_false(lcv == -1))
                panic("uvm_page_lookup_freelist: unable to locate physseg");
 #endif
        return (vm_physmem[lcv].free_list);



Home | Main Index | Thread Index | Old Index