DescriptionEmit atomic memory order other than seq_cst on demand only
The following CL:
https://codereview.chromium.org/791053006/
Taught PNaCl to support atomic memory orderings other than seq_cst (which was
the only supported memory ordering at launch). This is desirable for
performance, but it causes issues for users when rolling out the new SDK: old
versions of the translator don't accept anything but seq_cst and the canary SDK
emits them, which makes testing harder. This CL makes the SDK default to
emitting only seq_cst memory ordering, but leaves the translator as is (i.e. it
still accepts the new memory ordering). This makes it easier to roll out this
new feature, and users can still opt-in to emitting the new memory order by
specifying -pnacl-memory-order-seq-cst-only=false. The flag currently defaults
to seq_cst only, and for Chrome 43 it will be made to default to false
(i.e. acq/rel/acq_rel/seq_cst can be emitted).
R=jvoung@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=4029
TEST= make check
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-llvm.git;a=commit;h=0cebd5960dcd213d379ab504b6ae21b6e0837c93
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add test for -pnacl-memory-order-seq-cst-only=true #
Messages
Total messages: 4 (0 generated)
|