summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/src/exception.cpp
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2014-01-20 18:37:35 +0000
committermarcel <marcel@FreeBSD.org>2014-01-20 18:37:35 +0000
commit2c365a2165422815b2998b71d45d37f242928d96 (patch)
treefae1d802d7b05e696bc87d1fac29f0a58507ea80 /contrib/libc++/src/exception.cpp
parent875e23de1fa47e9bee345d3bfe18237970db0b83 (diff)
downloadFreeBSD-src-2c365a2165422815b2998b71d45d37f242928d96.zip
FreeBSD-src-2c365a2165422815b2998b71d45d37f242928d96.tar.gz
In pmap_set_pte(), make sure to enforce ordering by inserting a memory
fence. Under system load, the CPU has been found to change the order by which the stores are made visible. When the tag is made visible before the other TLB values, other CPUs may use the invalid TLB values and do bad things. While here (i.e. not a fix) don't return errors from pmap_remove_vhpt() to callers of pmap_remove_pte(). Those callers don't check the return value and as such don't do what is needed to keep a consistent state. More importantly, pmap_remove_vhpt() can't really have an error without it indicating something unintended. Using KASSERT is therefore better. PR: 182999, 183227
Diffstat (limited to 'contrib/libc++/src/exception.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud