summaryrefslogtreecommitdiff
path: root/runtime/openjdkjvmti/jvmti_weak_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/openjdkjvmti/jvmti_weak_table.h')
-rw-r--r--runtime/openjdkjvmti/jvmti_weak_table.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/runtime/openjdkjvmti/jvmti_weak_table.h b/runtime/openjdkjvmti/jvmti_weak_table.h
index ae3612208c..eeea75aa9d 100644
--- a/runtime/openjdkjvmti/jvmti_weak_table.h
+++ b/runtime/openjdkjvmti/jvmti_weak_table.h
@@ -53,7 +53,7 @@ template <typename T>
class JvmtiWeakTable : public art::gc::SystemWeakHolder {
public:
JvmtiWeakTable()
- : art::gc::SystemWeakHolder(kTaggingLockLevel),
+ : art::gc::SystemWeakHolder(art::kTaggingLockLevel),
update_since_last_sweep_(false) {
}
@@ -200,10 +200,6 @@ class JvmtiWeakTable : public art::gc::SystemWeakHolder {
}
};
- // The tag table is used when visiting roots. So it needs to have a low lock level.
- static constexpr art::LockLevel kTaggingLockLevel =
- static_cast<art::LockLevel>(art::LockLevel::kAbortLock + 1);
-
std::unordered_map<art::GcRoot<art::mirror::Object>,
T,
HashGcRoot,