Source-Changes-HG archive

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

[src/trunk]: src/sys/kern __predict_false() the test for init exiting.



details:   https://anonhg.NetBSD.org/src/rev/66729b1e1e4b
branches:  trunk
changeset: 485916:66729b1e1e4b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon May 08 19:58:17 2000 +0000

description:
__predict_false() the test for init exiting.

diffstat:

 sys/kern/kern_exit.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0f9e4c855c07 -r 66729b1e1e4b sys/kern/kern_exit.c
--- a/sys/kern/kern_exit.c      Mon May 08 19:46:12 2000 +0000
+++ b/sys/kern/kern_exit.c      Mon May 08 19:58:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exit.c,v 1.77 2000/05/08 19:06:36 thorpej Exp $   */
+/*     $NetBSD: kern_exit.c,v 1.78 2000/05/08 19:58:17 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -154,7 +154,7 @@
        struct vmspace *vm;
        int s;
 
-       if (p == initproc)
+       if (__predict_false(p == initproc))
                panic("init died (signal %d, exit %d)",
                    WTERMSIG(rv), WEXITSTATUS(rv));
 



Home | Main Index | Thread Index | Old Index