diff options
Diffstat (limited to 'openjdkjvmti/jvmti_weak_table.h')
-rw-r--r-- | openjdkjvmti/jvmti_weak_table.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/openjdkjvmti/jvmti_weak_table.h b/openjdkjvmti/jvmti_weak_table.h index afa2d1da0a..674b2a3d52 100644 --- a/openjdkjvmti/jvmti_weak_table.h +++ b/openjdkjvmti/jvmti_weak_table.h @@ -211,13 +211,13 @@ class JvmtiWeakTable : public art::gc::SystemWeakHolder { }; using TagAllocator = JvmtiAllocator<std::pair<const art::GcRoot<art::mirror::Object>, T>>; - std::unordered_map<art::GcRoot<art::mirror::Object>, - T, - HashGcRoot, - EqGcRoot, - TagAllocator> tagged_objects_ - GUARDED_BY(allow_disallow_lock_) - GUARDED_BY(art::Locks::mutator_lock_); + using TagMap = std::unordered_map<art::GcRoot<art::mirror::Object>, + T, + HashGcRoot, + EqGcRoot, + TagAllocator>; + + TagMap tagged_objects_ GUARDED_BY(allow_disallow_lock_) GUARDED_BY(art::Locks::mutator_lock_); // To avoid repeatedly scanning the whole table, remember if we did that since the last sweep. bool update_since_last_sweep_; }; |