From 5ffa0780a2738eed1f86efb967ea99badcbd5d9c Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Wed, 27 Jul 2016 10:45:47 -0700 Subject: 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 --- runtime/mirror/class.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/mirror/class.h') 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 size_t GetComponentSize() SHARED_REQUIRES(Locks::mutator_lock_) { - return 1U << GetComponentSizeShift(); + return 1U << GetComponentSizeShift(); } template -- cgit v1.2.3-59-g8ed1b