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:38:42 +0000 (13:38 +0100)
commit3f5838d7d0b9fc63db0ccc35c2ea05ed29264986
treeb0f050237092e5bd171e7644e482bfa245f86602
parentf4009e2249172ae8fe0e772ac8c0107400a28d6d
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
Change-Id: I0f03007ba5adf08656615900cf125075a3f2c541
runtime/base/mutex.h
runtime/oat_file.cc
runtime/oat_file.h