diff options
author | 2018-11-09 12:58:28 +0000 | |
---|---|---|
committer | 2018-11-29 11:41:07 +0000 | |
commit | db94f2be59e60bde11ac903c5bf30e63ead67992 (patch) | |
tree | 95d66a33cefefac89f84534ac4f023e76ff096d9 /runtime/interpreter/interpreter_switch_impl-inl.h | |
parent | 076c9da66b606057109e5fb2902d28129d120b96 (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_switch_impl-inl.h')
-rw-r--r-- | runtime/interpreter/interpreter_switch_impl-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_switch_impl-inl.h b/runtime/interpreter/interpreter_switch_impl-inl.h index 94cb3de9f8..aec2aa2564 100644 --- a/runtime/interpreter/interpreter_switch_impl-inl.h +++ b/runtime/interpreter/interpreter_switch_impl-inl.h @@ -26,7 +26,7 @@ #include "dex/dex_instruction_list.h" #include "experimental_flags.h" #include "interpreter_common.h" -#include "jit/jit.h" +#include "jit/jit-inl.h" #include "jvalue-inl.h" #include "mirror/string-alloc-inl.h" #include "nth_caller_visitor.h" |