OSDN Git Service

Simplify decision of which is the best oat file.
authorRichard Uhler <ruhler@google.com>
Tue, 8 Nov 2016 16:51:51 +0000 (16:51 +0000)
committerRichard Uhler <ruhler@google.com>
Thu, 24 Nov 2016 07:54:03 +0000 (07:54 +0000)
commit70a8426705571e84d83a060ae6abeb6d04cd2a17
tree768238710f9873bd74b6c74e0613449002517484
parent4b600964fe89b962afe3c9ae783a255789db4411
Simplify decision of which is the best oat file.

Previously the best oat file was determined by looking at all
combination of states of the oat file in the odex location and the oat
location. This change simplifies the decision by using the oat
location if that oat file is not out of date and using the odex
location otherwise. For practical cases, both decisions lead to the
same result.

Bug: 30937355
Test: oat_file_assistant_test

Change-Id: I687206612914cdbd43950fcdd7dd818a54255a6b
runtime/oat_file_assistant.cc
runtime/oat_file_assistant.h
runtime/oat_file_assistant_test.cc