summaryrefslogtreecommitdiff
path: root/runtime/base/locks.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2019-06-27 07:54:48 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2019-06-27 08:16:04 +0000
commitb476a29a2cda22b86fc1d96e4cc65ce36fb878af (patch)
tree039eaee2edf5495275088d1c467e522977c6bcd6 /runtime/base/locks.cc
parent3b2905366c6ee1eaba2d6477078e505e377343ec (diff)
Revert "Support using opaque JNI ids"
This reverts commit 21d5994583c679cd5d8573b5d35dbd659bdca2c7. Bug: 134162467 Reason for revert: Breaks debuggable Change-Id: I9510a6ac208d392ff25ee196a1a519fecd151445
Diffstat (limited to 'runtime/base/locks.cc')
-rw-r--r--runtime/base/locks.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/base/locks.cc b/runtime/base/locks.cc
index 7404d0d4fc..1cec44c27e 100644
--- a/runtime/base/locks.cc
+++ b/runtime/base/locks.cc
@@ -76,7 +76,6 @@ ReaderWriterMutex* Locks::jni_globals_lock_ = nullptr;
Mutex* Locks::jni_weak_globals_lock_ = nullptr;
ReaderWriterMutex* Locks::dex_lock_ = nullptr;
Mutex* Locks::native_debug_interface_lock_ = nullptr;
-ReaderWriterMutex* Locks::jni_id_lock_ = nullptr;
std::vector<BaseMutex*> Locks::expected_mutexes_on_weak_ref_access_;
Atomic<const BaseMutex*> Locks::expected_mutexes_on_weak_ref_access_guard_;
@@ -158,7 +157,6 @@ void Locks::Init() {
DCHECK(user_code_suspension_lock_ != nullptr);
DCHECK(dex_lock_ != nullptr);
DCHECK(native_debug_interface_lock_ != nullptr);
- DCHECK(jni_id_lock_ != nullptr);
DCHECK(runtime_thread_pool_lock_ != nullptr);
} else {
// Create global locks in level order from highest lock level to lowest.
@@ -319,10 +317,6 @@ void Locks::Init() {
DCHECK(native_debug_interface_lock_ == nullptr);
native_debug_interface_lock_ = new Mutex("Native debug interface lock", current_lock_level);
- UPDATE_CURRENT_LOCK_LEVEL(kJniIdLock);
- DCHECK(jni_id_lock_ == nullptr);
- jni_id_lock_ = new ReaderWriterMutex("JNI id map lock", current_lock_level);
-
UPDATE_CURRENT_LOCK_LEVEL(kAbortLock);
DCHECK(abort_lock_ == nullptr);
abort_lock_ = new Mutex("abort lock", current_lock_level, true);