DescriptionCompatible atomics: volatile for LoadRelaxed, replace FetchAndAdd with FetchAndDecrement.
Using volatile on a word size location will generate a single move instruction without order guarantees and is supported on all compilers.
Replace FetchAndAdd with FetchAndDecrement, since the latter is sufficient and eaiser to implement portably (in particular on some Windows setups).
BUG=https://github.com/dart-lang/sdk/issues/24049
R=iposva@google.com
Committed: https://github.com/dart-lang/sdk/commit/e7fb1c8516c99279551471986f044655285e7bbb
Patch Set 1 #Patch Set 2 : Comment. #
Total comments: 4
Patch Set 3 : Additional comments. #
Messages
Total messages: 5 (1 generated)
|