OSDN Git Service

Remove read barrier in UnstartedUnsafeCompareAndSwapLong.
authorRoland Levillain <rpl@google.com>
Fri, 21 Oct 2016 13:47:26 +0000 (14:47 +0100)
committerRoland Levillain <rpl@google.com>
Fri, 21 Oct 2016 14:09:06 +0000 (15:09 +0100)
commitec32b91cfa1061b2608838d41e6d7d70fdf681dc
tree31d69c22423faf20aa72915f5c26fa7dc3213242
parent6c42676b466c4f08cfa6ca43da65bc74f48dc063
Remove read barrier in UnstartedUnsafeCompareAndSwapLong.

art::interpreter::UnstartedRuntime::UnstartedUnsafeCompareAndSwapLong
manipulates a long field and does not need a read barrier
(read barriers are only required when loading an object
reference from the heap).

Test: ART_USE_READ_BARRIER=true make test-art-host
Bug: 12687968
Change-Id: Ia46590e649a7bb46ca4b3c90bab03fb3a836563d
runtime/interpreter/unstarted_runtime.cc