|
From: John R. <jr...@bi...> - 2012-06-17 15:13:57
|
On 06/17/2012, Philippe Waroquiers wrote: > I am however not at all convinced that only protecting the STORE8 > will avoid false positive (we could maybe tolerate a small rate > of false negative when running in parallel). > Even if protecting the STORE8 is good enough, then any parallel > algorithm which works a lot with single bytes might be slowed > down by a factor 10 or similar. Use LoadLocked and StoreConditional instructions, as on MIPS. These sense the state of the cache line, and implement a "greedy" solution. Your code provides the fixup when greedy fails (usually: try again, after re-fetch and re-modify.) -- |