diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2014-06-13 16:44:55 -0700 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2014-06-13 16:44:55 -0700 |
commit | a91a4bc1f8960f64c5f7e4616d46e21b8e1bfba2 (patch) | |
tree | 31988cb0623dc3b095142b65dff37dd959ff4df2 /runtime/read_barrier-inl.h | |
parent | 97ed29f800c56a06fd6989e0883e4c97bedd2453 (diff) | |
download | art-a91a4bc1f8960f64c5f7e4616d46e21b8e1bfba2.tar.gz art-a91a4bc1f8960f64c5f7e4616d46e21b8e1bfba2.tar.bz2 art-a91a4bc1f8960f64c5f7e4616d46e21b8e1bfba2.zip |
Add read barriers for the class and the intern tables.
Add read barriers for the strong roots in the intern table and the
(strong) roots in the class table to make possible concurrent scanning
of them.
Bug: 12687968
Change-Id: If6edc33a37e65a8494e66dc3b144138b1530367f
Diffstat (limited to 'runtime/read_barrier-inl.h')
-rw-r--r-- | runtime/read_barrier-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/read_barrier-inl.h b/runtime/read_barrier-inl.h index e252b7bb83..fd43d78835 100644 --- a/runtime/read_barrier-inl.h +++ b/runtime/read_barrier-inl.h @@ -44,8 +44,8 @@ inline MirrorType* ReadBarrier::Barrier( } template <typename MirrorType, ReadBarrierOption kReadBarrierOption> -inline MirrorType* ReadBarrier::BarrierForWeakRoot(MirrorType** weak_root) { - MirrorType* ref = *weak_root; +inline MirrorType* ReadBarrier::BarrierForRoot(MirrorType** root) { + MirrorType* ref = *root; const bool with_read_barrier = kReadBarrierOption == kWithReadBarrier; if (with_read_barrier && kUseBakerReadBarrier) { // To be implemented. |