diff options
author | Ian Rogers <irogers@google.com> | 2014-09-12 23:10:21 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-09-12 23:10:21 -0700 |
commit | ecaebd37bc9af576ddfe1be0bd4f3889e88d6f23 (patch) | |
tree | f461acc73a65791f5a1a5c0d2b7d42b35add9c5b /runtime/dex_file.h | |
parent | 9b43d91b21c83cb5fb3f618e3f8053fd7c39c906 (diff) | |
download | android_art-ecaebd37bc9af576ddfe1be0bd4f3889e88d6f23.tar.gz android_art-ecaebd37bc9af576ddfe1be0bd4f3889e88d6f23.tar.bz2 android_art-ecaebd37bc9af576ddfe1be0bd4f3889e88d6f23.zip |
Remove dex file index building mutex.
First thread to get to max misses builds the index and sets an atomic, other
threads continue and return null. Avoids lock contention and removes a member
variable.
Change-Id: Ia91e4a8fd915941aea849f019c85b67894ec6e71
Diffstat (limited to 'runtime/dex_file.h')
-rw-r--r-- | runtime/dex_file.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/dex_file.h b/runtime/dex_file.h index 1b46a12ae8..1cec264be0 100644 --- a/runtime/dex_file.h +++ b/runtime/dex_file.h @@ -979,7 +979,6 @@ class DexFile { }; typedef std::unordered_map<const char*, const ClassDef*, UTF16HashCmp, UTF16HashCmp> Index; mutable Atomic<Index*> class_def_index_; - mutable Mutex build_class_def_index_mutex_ DEFAULT_MUTEX_ACQUIRED_AFTER; }; std::ostream& operator<<(std::ostream& os, const DexFile& dex_file); |