OSDN Git Service

Remove ALWAYS_INLINE from ReadBarrier::Mark().
authorHiroshi Yamauchi <yamauchi@google.com>
Thu, 28 Jan 2016 21:39:41 +0000 (13:39 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Thu, 28 Jan 2016 21:39:41 +0000 (13:39 -0800)
This fixes a Ritzperf EAAC performance regression in the read barrier
config.

Bug: 26744236
Bug: 12687968
Change-Id: Ieaeb57def0e3a9eeb5fd8b1234658b45fd31ce77

runtime/read_barrier.h

index 3169a8b..77be6cf 100644 (file)
@@ -80,8 +80,7 @@ class ReadBarrier {
   static void AssertToSpaceInvariant(GcRootSource* gc_root_source, mirror::Object* ref)
       SHARED_REQUIRES(Locks::mutator_lock_);
 
-  ALWAYS_INLINE static mirror::Object* Mark(mirror::Object* obj)
-      SHARED_REQUIRES(Locks::mutator_lock_);
+  static mirror::Object* Mark(mirror::Object* obj) SHARED_REQUIRES(Locks::mutator_lock_);
 
   static mirror::Object* WhitePtr() {
     return reinterpret_cast<mirror::Object*>(white_ptr_);