summaryrefslogtreecommitdiffstats
path: root/runtime/read_barrier-inl.h
Commit message (Collapse)AuthorAgeFilesLines
* Add read barriers to the weak roots in the intern table.Hiroshi Yamauchi2014-05-281-2/+2
| | | | | Bug: 12687968 Change-Id: I424f1df76a7e3d7154fb9f3c951c973d19bd640f
* Add a read barrier for weak roots in monitors.Hiroshi Yamauchi2014-05-211-0/+15
| | | | | | | | | | | | | | A weak root requires a read barrier for the to-space invariant to hold because the object pointed to by a weak root can't be marked/forwarded like the one pointed to by a strong root (GC does not know if it's alive or not at that point) and because, without a read barrier, a mutator could access it and obtain a from-space reference, which would violate the to-space invariant. TODO: do similar for the other types of weak roots. Bug: 12687968 Change-Id: I563a0fa4f875e0c21ac96f57696959454e13b15a
* Replace the bool kDoReadBarrier template parameter with an enum.Hiroshi Yamauchi2014-05-011-3/+4
| | | | | | | | | Fix one kDoReadBarrier/kIsVolatile mixup in an Object::GetFieldObject call. Bug: 12687968 Change-Id: I896b1137b21a20c0504abd2bf3fe6f83805f3300
* Insert an empty read barrier call.Hiroshi Yamauchi2014-04-031-0/+47
Bug: 12687968 Change-Id: Ie1d28658e16e09f6a983cb5c1f0d5b375b7ae069