summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hiroshi Yamauchi <yamauchi@google.com> 2016-01-29 12:06:36 -0800
committer Hiroshi Yamauchi <yamauchi@google.com> 2016-01-29 12:07:50 -0800
commit2e5de788d941d00f373ce515d39d8165b22fa63e (patch)
tree8cb64a25bb1feffddc9c26ddc6c06bab61c70d2d
parent97f4bc04b61d5cf78b0820dbf18e999b20d7a108 (diff)
Add a comment on ReadBarrier::Mark() about ALWAYS_INLINE.
This is a follow up on CL 199360. Bug: 12687968 Bug: 26744236 Change-Id: I9930894a403e897b85d77caf92834afaa9a860a0
-rw-r--r--runtime/read_barrier.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/read_barrier.h b/runtime/read_barrier.h
index 77be6cf71e..b7bd99b6f5 100644
--- a/runtime/read_barrier.h
+++ b/runtime/read_barrier.h
@@ -80,6 +80,7 @@ class ReadBarrier {
static void AssertToSpaceInvariant(GcRootSource* gc_root_source, mirror::Object* ref)
SHARED_REQUIRES(Locks::mutator_lock_);
+ // ALWAYS_INLINE on this caused a performance regression b/26744236.
static mirror::Object* Mark(mirror::Object* obj) SHARED_REQUIRES(Locks::mutator_lock_);
static mirror::Object* WhitePtr() {