Re: Issue about memory order on ARM

2019-12-01 Thread Tom Lane
"=?utf-8?B?55uP5LiA?=" writes: > The code in GetSnapshotData() that read the `xid` field of  PGXACT > struct has a dependency on code in GetNewTransactionId() that write > `MyPgXact->xid`. It means that the store of xid should happen before the > load of it. In C11, we can use [Release-Acquire

Issue about memory order on ARM

2019-11-30 Thread 盏一
The code in GetSnapshotData() that read the `xid` field of  PGXACT struct has a dependency on code in GetNewTransactionId() that write `MyPgXact->xid`. It means that the store of xid should happen before the load of it. In C11, we can use [Release-Acquire ordering](https://en.cppreference.com/w