summaryrefslogtreecommitdiff
path: root/runtime/interpreter/interpreter_common.h
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2018-11-09 12:58:28 +0000
committer David Srbecky <dsrbecky@google.com> 2018-11-29 11:41:07 +0000
commitdb94f2be59e60bde11ac903c5bf30e63ead67992 (patch)
tree95d66a33cefefac89f84534ac4f023e76ff096d9 /runtime/interpreter/interpreter_common.h
parent076c9da66b606057109e5fb2902d28129d120b96 (diff)
Reduce the number of calls to Jit::AddSamples.
The method is called for every invoke which is expensive. Add samples, but don't check the consequences every time. This reduces its cost from 3.5% to 1% (maps on device). Test: ./art/test.py -b -r --host --64 Change-Id: Ie90da905d067b5d85a3c494c7c9af81b24dc8135
Diffstat (limited to 'runtime/interpreter/interpreter_common.h')
-rw-r--r--runtime/interpreter/interpreter_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_common.h b/runtime/interpreter/interpreter_common.h
index bf84227560..1c724212f5 100644
--- a/runtime/interpreter/interpreter_common.h
+++ b/runtime/interpreter/interpreter_common.h
@@ -44,7 +44,7 @@
#include "handle_scope-inl.h"
#include "interpreter_mterp_impl.h"
#include "interpreter_switch_impl.h"
-#include "jit/jit.h"
+#include "jit/jit-inl.h"
#include "mirror/call_site.h"
#include "mirror/class-inl.h"
#include "mirror/dex_cache.h"