On 3/19/2017 2:55 PM, Ramine wrote:
> Hello,
>
> You don't understand, i was aware that memory ordering is not the only
> issue and that you have to use fences and memory barriers but
> what i am explaining to you is that my implementation of my algorithms
> like my MLock and AMLock etc. already uses the correct fences and memory
> barriers to ensure sequential consistency in the hardware side, but what
> i need is to switch the optimization off to avoid memory ordering of the
> Delphi and FreePascal compilers.
I will switch the optimization off just locally on my MLock and AMLock
and some others, that's easy to do to avoid memory reordering of Delphi
and FreePascal..