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
diff --git a/runtime/base/mutex.h b/runtime/base/mutex.h
index 818f9d9..d898e49 100644
--- a/runtime/base/mutex.h
+++ b/runtime/base/mutex.h
@@ -70,6 +70,7 @@
kMarkSweepMarkStackLock,
kTransactionLogLock,
kInternTableLock,
+ kOatFileSecondaryLookupLock,
kDefaultMutexLevel,
kMarkSweepLargeObjectLock,
kPinTableLock,