On Thu, Aug 21, 2008 at 02:03:26PM +0200, Peter Zijlstra wrote:Well, I guess you guys will be the judge of that. Or one of the judges, at least. ;-) One advantage of the current c++0x approach is that it allows extremely weak memory barriers to be used in many cases that would require smp_rmb() in current Linux kernel. If you are crazy enough to want to see a sneak preview in standardese, try all 10MB of: http://open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2691.pdf Section 1.10 (physical page 25, logical page 11) describes the memory model. Sections 29 and 30 describe the operations (physical page 1155, logical page 1141). The C and C++ guys got together ahead of time and agreed to work together towards a compatible solution. And rcu_dereference() would be implemented in terms of memory_order_consume, for whatever that is worth. Sounds fair to me! Thanx, Paul --
| Linus Torvalds | Linux 2.6.27-rc5 |
| Greg Kroah-Hartman | [PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt |
| Kamalesh Babulal | [Build Failure] 2.6.25-rc5-mm1 Build fails with allmodconfig probe_4drives undefined |
| Gabriel C | Re: Linus 2.6.23-rc1 |
| David Woodhouse | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
git: | |
