diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2015-10-20 11:11:56 -0700 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2015-10-21 16:02:43 -0700 |
commit | fed3e2fd4919b58f8e4f8cbc317ee101f3b9af49 (patch) | |
tree | 284c4eeec50336a4424a873d1e934481375b2823 /compiler/optimizing/graph_visualizer.cc | |
parent | 114873103db3d4d6e0da42ca02bad1ea8826443b (diff) |
Relax some CASes for the CC collector.
That is, removing some unnecessary memory fences.
We can use the relaxed CAS for the mark bitmap and reference field/GC
root updates because only the atomicity of the updated word matters
there.
We can use the release CAS for the read barrier bits in the lock word
because it needs to make sure the reference field updates are visible
when the object changes black from gray (the field update stores won't
be reordered after the CAS.)
The CC collector's Ritz EAAC GC time decreases from 34.7s to
29.1s (-16%) on N5.
Bug: 12687968
Change-Id: If082d5911a25fac695df66263a8f55ce8149b199
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions