Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Make nc_hittime volatile to defeat compiler cleverness.
details: https://anonhg.NetBSD.org/src/rev/4560839ba6a3
branches: trunk
changeset: 465645:4560839ba6a3
user: ad <ad%NetBSD.org@localhost>
date: Sun Dec 01 13:45:42 2019 +0000
description:
Make nc_hittime volatile to defeat compiler cleverness.
diffstat:
sys/sys/namei.src | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9ee075e8188e -r 4560839ba6a3 sys/sys/namei.src
--- a/sys/sys/namei.src Sun Dec 01 13:39:53 2019 +0000
+++ b/sys/sys/namei.src Sun Dec 01 13:45:42 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namei.src,v 1.44 2019/12/01 13:39:53 ad Exp $ */
+/* $NetBSD: namei.src,v 1.45 2019/12/01 13:45:42 ad Exp $ */
/*
* Copyright (c) 1985, 1989, 1991, 1993
@@ -219,7 +219,7 @@
struct vnode *nc_dvp; /* N vnode of parent of name */
struct vnode *nc_vp; /* N vnode the name refers to */
kmutex_t *nc_lock; /* - lock on this entry */
- int nc_hittime; /* N last time scored a hit */
+ volatile int nc_hittime; /* N last time scored a hit */
int nc_flags; /* - copy of componentname ISWHITEOUT */
u_short nc_nlen; /* - length of name */
char nc_name[0]; /* - segment name */
Home |
Main Index |
Thread Index |
Old Index