Load/Store tearing in this day and age?
Load/Store tearing in this day and age?
Posted Jul 16, 2019 22:58 UTC (Tue) by excors (subscriber, #95769)In reply to: Load/Store tearing in this day and age? by pr1268
Parent article: Who's afraid of a big bad optimizing compiler?
Posted Jul 17, 2019 6:58 UTC (Wed)
by PaulMcKenney (✭ supporter ✭, #9624)
[Link]
Posted Jul 18, 2019 4:21 UTC (Thu)
by ncm (guest, #165)
[Link]
On x86 they devote another few million transistors for each case to help avoid what would be a kernel trap. All the extra transistors strengthen Intel's (and, lately, AMD's and Samsung's) competitive position vs cheaper hardware. It's not free, because that enables a monopoly or oligopoly that may then extract rent or (worse) limit your choices.
In the US, only the former is ever considered actionable harm, despite the law recognizing both. It is artificially difficult to demonstrate the latter, where logically it should instead be assumed.
So, exercising care with alignment affords you more choice in hardware that can run your code fast enough, and safely, which might also enable saving money, too, and also power and heat, because those millions of transistors burn power.
Load/Store tearing in this day and age?
Load/Store tearing in this day and age?