summaryrefslogtreecommitdiffstats
path: root/runtime/indirect_reference_table_test.cc
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2013-09-10 16:24:21 -0700
committerHiroshi Yamauchi <yamauchi@google.com>2013-09-11 15:38:23 -0700
commit967a0adf8b93a23d2a8fef82e06bd913db94ac19 (patch)
tree35b7fbf6eb1899736213e57e11c85d16c1b4853e /runtime/indirect_reference_table_test.cc
parentaf3994db1b42929666b6a50c3c4b237a25c99951 (diff)
downloadart-967a0adf8b93a23d2a8fef82e06bd913db94ac19.tar.gz
art-967a0adf8b93a23d2a8fef82e06bd913db94ac19.tar.bz2
art-967a0adf8b93a23d2a8fef82e06bd913db94ac19.zip
More allocation code optimizations.
- Inline Class::AllocObject() and Array::Alloc(). - Inline some short Mutex functions and add LIKELY/UNLIKELY to some Mutex functions. - This change improves the Ritz MemAllocTest by ~6% on Nexus 4 and ~10% on host. Bug: 9986565 Change-Id: I1606c74ddb21676cbc1de1a40e9b076fc23eaea4
Diffstat (limited to 'runtime/indirect_reference_table_test.cc')
-rw-r--r--runtime/indirect_reference_table_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/indirect_reference_table_test.cc b/runtime/indirect_reference_table_test.cc
index bd2890c497..b6c6cb4be3 100644
--- a/runtime/indirect_reference_table_test.cc
+++ b/runtime/indirect_reference_table_test.cc
@@ -17,6 +17,7 @@
#include "common_test.h"
#include "indirect_reference_table.h"
+#include "mirror/object-inl.h"
namespace art {