diff options
| author | 2017-08-17 15:26:54 -0700 | |
|---|---|---|
| committer | 2017-09-21 14:10:32 -0700 | |
| commit | 545412b4b250d6024ff071c094c226187860a086 (patch) | |
| tree | 9dccf6033809113a7c741f84c33ee27542b18c97 /compiler/optimizing/code_generator.cc | |
| parent | 38a03535e4abf24cda22a13e514454d9847b9682 (diff) | |
compiler: layout OatMethodQuickCode by profile hotness
Re-arrange all the compiled oat code by using the profile information.
If no profile is available, it retains the original order
(sorted by class_def_idx, method_idx).
Methods are all binned together in a group according to the hotness flags:
 -- not hot at all
 -- all hot
 -- all hot and startup
 -- all hot and post-startup
 -- all hot and startup and poststartup
 -- all startup
 -- all startup and post-startup
 -- all post-startup
(See MethodHotness enum definition for up-to-date binning order.)
Methods within a bin also retain the original order. A deduped method
will appear in the bin of the smallest (class_def_idx, method_idx).
Saves 700KB of memory (PSS) for system_server on most devices.
Bug: 64577026
Test: art/test.py  # no regressions
Test: art/testrunner/testrunner.py -t 661-oat-writer-layout  # new test
Change-Id: I40e9907d095b4a3b48bff0df8799954ef135fc19
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
0 files changed, 0 insertions, 0 deletions