OSDN Git Service

Fix performance regression in OatFile::GetOatDexFile().
authorVladimir Marko <vmarko@google.com>
Thu, 7 Aug 2014 17:07:18 +0000 (18:07 +0100)
committerVladimir Marko <vmarko@google.com>
Fri, 8 Aug 2014 12:44:03 +0000 (13:44 +0100)
commit4bb932773e47b1ce04602d81ffa5a8a7d863eb10
tree1e3257748500d9ab485a7a89d6743760cec45684
parentfa9c8ec37c66574654e448513e1bb59af7cb9365
Fix performance regression in OatFile::GetOatDexFile().

Try to avoid calculating the canonical location of the
dex file if possible and when we have to calculate it,
cache the lookup result for subsequent lookups.

Bug: 16828525
Bug: 16859671

(cherry picked from commit 3f5838d7d0b9fc63db0ccc35c2ea05ed29264986)

Change-Id: Ifd9a45dada2cc724382fd03c10f6437a6b71e666
runtime/base/mutex.h
runtime/oat_file.cc
runtime/oat_file.h