summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/codegen_util.cc
diff options
context:
space:
mode:
author Hiroshi Yamauchi <yamauchi@google.com> 2013-10-08 16:42:37 -0700
committer Hiroshi Yamauchi <yamauchi@google.com> 2013-10-09 17:29:11 -0700
commitbe031fff278799984166ec866c2dd202447e0f23 (patch)
tree48c60def3d4727cd5d8ba5a83b12ed27092bbb4b /compiler/dex/quick/codegen_util.cc
parent34633b22f74393344987a50b8aaee548a9dadc18 (diff)
Remove four counter increments out of the allocation path.
- This change removes the four allocation counters (the number of bytes allocated, the number of objects allocated, the number of bytes allocated ever, the number of objects allocated ever) from the dlmalloc space allocation path. Now those counter values are computed on the fly based on a combination of the two new counters that are incremented by the GC side (the number of bytes freed ever and the number of objects freed ever) and mspace_inspect_all() calls. - This results in a 1-2% speedup (though with some noise) in Ritz MemAllocTest on Nexus 4. Bug: 9986565 Change-Id: Id9a8e05a745ac1e5ea7a2b5fd9319814a9d4af13
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
0 files changed, 0 insertions, 0 deletions