diff options
author | 2016-07-27 10:45:47 -0700 | |
---|---|---|
committer | 2016-07-27 13:57:01 -0700 | |
commit | 5ffa0780a2738eed1f86efb967ea99badcbd5d9c (patch) | |
tree | ee3a4bde21aa03ad564c84877b3cbab3048e6cfd /runtime/mirror/class.h | |
parent | 93afc5f20a23ece78d6d6e506ed75775b8ef2113 (diff) |
Reduce unnecessary read barriers in GC
Removed read barrier from IsUnprocessed, DequeuePendingReference,
EnqueueReference, and a few other places.
Hard to tell if GC time goes down.
EAAC:
Before GC slow path count: 254857
After GC slow path count: 1005
Bug: 30162165
Bug: 12687968
Test: test-art-host, volantis boot with CC
Change-Id: Ic2add3a9b1e1d7561b0b167f2218b10f8dbff76c
Diffstat (limited to 'runtime/mirror/class.h')
-rw-r--r-- | runtime/mirror/class.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h index 32ed337cca..3ba9e1aaab 100644 --- a/runtime/mirror/class.h +++ b/runtime/mirror/class.h @@ -471,7 +471,7 @@ class MANAGED Class FINAL : public Object { template<ReadBarrierOption kReadBarrierOption = kWithReadBarrier> size_t GetComponentSize() SHARED_REQUIRES(Locks::mutator_lock_) { - return 1U << GetComponentSizeShift(); + return 1U << GetComponentSizeShift<kReadBarrierOption>(); } template<ReadBarrierOption kReadBarrierOption = kWithReadBarrier> |