| ||||
| Comment on Reader Q&A: Acquire/release and sequential consistency by Herb Sutter
@Fernando: That code is fine and needs no special code generation for many reasons (disjoint stacks so those locals won’t be adjacent; escape analysis and constant propagation would eliminate c and b outright; even if c and b were static and laid out adjacent in memory it’s fine because all modern processors have single-byte reads so no need even to inject alignment/padding, etc.). Ah, and now I see Bjarne already answered this right in that FAQ. :) Read More »Comment on Reader Q&A: Acquire/release and sequential consistency by Fernando Pelliccioni
Hi Herb, I’ve seen the Atomics Weapons (1 and 2) videos, I found great, thanks! In all examples where you explain the Memory Model you’re using atomic declarations, right? My question is: // thread 1: // thread 2: … Does this mean that a C++11 compliance compiler must insert “lock” instructions (barrier, fences, adquire/release, etc…) to protect NON-Shared NON-atomic memory? Thanks and regards, | ||||
| | ||||
| ||||
Thursday, October 31, 2013
FeedaMail: Comments for Sutterâs Mill
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment