svn commit: r347131 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Sat May 4 19:04:19 UTC 2019
Author: mjg
Date: Sat May 4 19:04:17 2019
New Revision: 347131
URL: https://svnweb.freebsd.org/changeset/base/347131
Log:
Annotate nprocs with __exclusive_cache_line
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/kern/kern_fork.c
Modified: head/sys/kern/kern_fork.c
==============================================================================
--- head/sys/kern/kern_fork.c Sat May 4 18:00:57 2019 (r347130)
+++ head/sys/kern/kern_fork.c Sat May 4 19:04:17 2019 (r347131)
@@ -185,7 +185,7 @@ sys_rfork(struct thread *td, struct rfork_args *uap)
return (error);
}
-int nprocs = 1; /* process 0 */
+int __exclusive_cache_line nprocs = 1; /* process 0 */
int lastpid = 0;
SYSCTL_INT(_kern, OID_AUTO, lastpid, CTLFLAG_RD, &lastpid, 0,
"Last used PID");
More information about the svn-src-all
mailing list