Searched hist:a5bd21d0fe925e54f415899d619cff0d95ec8c40 (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/x86/x86/ |
H A D | cpu_machdep.c | diff a5bd21d0fe925e54f415899d619cff0d95ec8c40 Tue Apr 24 16:02:46 CEST 2018 Konstantin Belousov <kib@FreeBSD.org> Use relaxed atomics to access the monitor line.
We must ensure that accesses occur, they do not have any other compiler-visible effects. Bruce found some situations where optimization could remove an access, and provided a patch to use volatile qualifier for the state variables. Since volatile behaviour there is the compiler-specific interpretation of the keyword, use relaxed atomics instead, which gives exactly the desired semantic.
Noted by and discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week
|