summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/codegen_util.cc
diff options
context:
space:
mode:
author Hiroshi Yamauchi <yamauchi@google.com> 2013-09-12 21:33:12 -0700
committer Hiroshi Yamauchi <yamauchi@google.com> 2013-09-25 20:28:49 -0700
commit3b4c18933c24b8a33f38573c2ebcdb9aa16efeb5 (patch)
tree5298ccd9c1f1f6b329c0cb6cefac6a8df43dd633 /compiler/dex/quick/codegen_util.cc
parentf7e090ebcded6d6693894c018d89c4add79253ff (diff)
Split the allocation path into 'instrumented' and 'uninstrumented'
ones. The instrumented path is equivalent to the existing allocation path that checks for three instrumentation mechanisms (the debugger allocation tracking, the runtime allocation stats collection, and valgrind) for every allocation. The uinstrumented path does not perform these checks. We use the uninstrumented path by default and enable the instrumented path only when any of the three mechanisms is enabled. The uninstrumented version of Heap::AllocObject() is inlined. This change improves the Ritz MemAllocTest by ~4% on Nexus 4 and ~3% on Host/x86. Bug: 9986565 Change-Id: I3e68dfff6789d77bbdcea98457b694e1b5fcef5f
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
0 files changed, 0 insertions, 0 deletions