OSDN Git Service

Move to release CAS for updating object fields
authorMathieu Chartier <mathieuc@google.com>
Thu, 1 Jun 2017 18:26:50 +0000 (11:26 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 1 Jun 2017 20:24:43 +0000 (13:24 -0700)
commita1f20c3f8d0dabb9723acccf3ba760acf3ebe62d
treec97f856167c10f22ad207b246526be94ed051dd5
parent192289ec4e3848b6945a251954c5a3116fba0aec
Move to release CAS for updating object fields

Relaxed cas is not sufficient to make sure threads that read the
field will see the copied contents of objects.

Bug: 37187694
Bug: 62240510

Test: test-art-host

Change-Id: I1239817e2b63e0e43ac3ae3148b73487408b378b
runtime/atomic.h
runtime/class_table-inl.h
runtime/gc/collector/concurrent_copying.cc
runtime/mirror/object-inl.h
runtime/mirror/object-readbarrier-inl.h
runtime/mirror/object.h
runtime/read_barrier-inl.h