summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-03-09 13:12:48 +0000
committerrwatson <rwatson@FreeBSD.org>2009-03-09 13:12:48 +0000
commit0e6c8b2a3584a7a99d2b0609bb325b6d3b79b2c5 (patch)
tree7750c9de4c1b35cd4ded390f6f19bb7765ccdf91
parent527781253152b25016cf729311845b232c83387b (diff)
downloadFreeBSD-src-0e6c8b2a3584a7a99d2b0609bb325b6d3b79b2c5.zip
FreeBSD-src-0e6c8b2a3584a7a99d2b0609bb325b6d3b79b2c5.tar.gz
Use a u_int for p_lock instead of a char: this avoids a (somewhat
unlikely but not impossible given modern thread counts) wrap-around, and the compiler was padding it out to an int (at least) anyway. MFC after: 3 days (but confirm ABI impact)
-rw-r--r--sys/sys/proc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 0488dcd..b2bfadd 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -491,7 +491,7 @@ struct proc {
struct vnode *p_tracevp; /* (c + o) Trace to vnode. */
struct ucred *p_tracecred; /* (o) Credentials to trace with. */
struct vnode *p_textvp; /* (b) Vnode of executable. */
- char p_lock; /* (c) Proclock (prevent swap) count. */
+ u_int p_lock; /* (c) Proclock (prevent swap) count. */
struct sigiolst p_sigiolst; /* (c) List of sigio sources. */
int p_sigparent; /* (c) Signal to parent on exit. */
int p_sig; /* (n) For core dump/debugger XXX. */
OpenPOWER on IntegriCloud