OSDN Git Service

Skip profiling if the dex file is fully compiled
authorCalin Juravle <calin@google.com>
Mon, 18 Apr 2016 15:38:27 +0000 (16:38 +0100)
committerCalin Juravle <calin@google.com>
Tue, 19 Apr 2016 14:42:56 +0000 (15:42 +0100)
commit7506423b2b9ea13fc5fa9711ab0106977876a5a2
tree334e56429015d9235a5e8d0dab0dd479480e316f
parent78d7c8826d5cca583202085dfde382fb6fcc1629
Skip profiling if the dex file is fully compiled

The OatFile does not store the original dex location that was used to
compile the file. So in order to get the oat file for a given code path
we need to iterate over the inner oat dex files and check against them.

Also, we used to pass the unfiltered code_paths set to the saver which
would make the filtering useless. This fixes the parameter passing as
well.

Bug: 27893309
Change-Id: Ia95d61a82a9e74769ebf3329bb1f9c714bcff27f
runtime/jit/profile_saver.cc
runtime/oat_file_manager.cc
runtime/oat_file_manager.h