summaryrefslogtreecommitdiffstats
path: root/runtime/dex_file.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-04-28 16:47:08 -0700
committerIan Rogers <irogers@google.com>2014-04-29 14:36:28 -0700
commitb0fa5dc7769c1e054032f39de0a3f6d6dd06f8cf (patch)
tree839d13ebfa7170967dd9b4abd434b7abda53da99 /runtime/dex_file.h
parent948740c1938860df055ddc801f20fd1707331e38 (diff)
downloadart-b0fa5dc7769c1e054032f39de0a3f6d6dd06f8cf.zip
art-b0fa5dc7769c1e054032f39de0a3f6d6dd06f8cf.tar.gz
art-b0fa5dc7769c1e054032f39de0a3f6d6dd06f8cf.tar.bz2
Force inlining on trivial accessors.
Make volatility for GetFieldObject a template parameter. Move some trivial mirror::String routines to a -inl.h. Bug: 14285442 Change-Id: Ie23b11d4f18cb15a62c3bbb42837a8aaf6b68f92
Diffstat (limited to 'runtime/dex_file.h')
-rw-r--r--runtime/dex_file.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/runtime/dex_file.h b/runtime/dex_file.h
index 70baeed..c782ab1 100644
--- a/runtime/dex_file.h
+++ b/runtime/dex_file.h
@@ -21,7 +21,7 @@
#include <vector>
#include "base/logging.h"
-#include "base/mutex.h"
+#include "base/mutex.h" // For Locks::mutator_lock_.
#include "globals.h"
#include "invoke_type.h"
#include "jni.h"
@@ -386,10 +386,6 @@ class DexFile {
return *header_;
}
- Mutex& GetModificationLock() {
- return modification_lock;
- }
-
// Decode the dex magic version
uint32_t GetVersion() const;
@@ -877,11 +873,6 @@ class DexFile {
// Manages the underlying memory allocation.
UniquePtr<MemMap> mem_map_;
- // The DEX-to-DEX compiler uses this lock to ensure thread safety when
- // enabling write access to a read-only DEX file.
- // TODO: move to Locks::dex_file_modification_lock.
- Mutex modification_lock;
-
// Points to the header section.
const Header* const header_;