Re: A question about "4.3.4.2 A Volatile Solution" of perfbook

2024-11-10 Thread Alan Huang
On Nov 11, 2024, at 15:45, Nan Xiao wrote: > > Hello, > > Greetings from me! > > I am reading "4.3.4.2 A Volatile Solution" of perfbook, and come > across following summary: > >To summarize, the volatile keyword can prevent load tearing and > store tearing in cases where the loads and stor

A question about "4.3.4.2 A Volatile Solution" of perfbook

2024-11-10 Thread Nan Xiao
Hello, Greetings from me! I am reading "4.3.4.2 A Volatile Solution" of perfbook, and come across following summary: To summarize, the volatile keyword can prevent load tearing and store tearing in cases where the loads and stores are machine-sized and properly aligned. It can also prevent l