No public description PiperOrigin-RevId: 874896472
diff --git a/fuzztest/internal/domains/flatbuffers_domain_impl.cc b/fuzztest/internal/domains/flatbuffers_domain_impl.cc index 1a94bbf..5f92ea7 100644 --- a/fuzztest/internal/domains/flatbuffers_domain_impl.cc +++ b/fuzztest/internal/domains/flatbuffers_domain_impl.cc
@@ -45,8 +45,8 @@ : DomainBase(other), schema_(other.schema_), table_object_(other.table_object_) { - absl::MutexLock l_other(&other.mutex_); - absl::MutexLock l_this(&mutex_); + absl::MutexLock l_other(other.mutex_); + absl::MutexLock l_this(mutex_); domains_ = other.domains_; } @@ -55,8 +55,8 @@ DomainBase::operator=(other); schema_ = other.schema_; table_object_ = other.table_object_; - absl::MutexLock l_other(&other.mutex_); - absl::MutexLock l_this(&mutex_); + absl::MutexLock l_other(other.mutex_); + absl::MutexLock l_this(mutex_); domains_ = other.domains_; return *this; } @@ -64,8 +64,8 @@ FlatbuffersTableUntypedDomainImpl::FlatbuffersTableUntypedDomainImpl( FlatbuffersTableUntypedDomainImpl&& other) : schema_(other.schema_), table_object_(other.table_object_) { - absl::MutexLock l_other(&other.mutex_); - absl::MutexLock l_this(&mutex_); + absl::MutexLock l_other(other.mutex_); + absl::MutexLock l_this(mutex_); domains_ = std::move(other.domains_); DomainBase::operator=(std::move(other)); } @@ -74,8 +74,8 @@ FlatbuffersTableUntypedDomainImpl&& other) { schema_ = other.schema_; table_object_ = other.table_object_; - absl::MutexLock l_other(&other.mutex_); - absl::MutexLock l_this(&mutex_); + absl::MutexLock l_other(other.mutex_); + absl::MutexLock l_this(mutex_); domains_ = std::move(other.domains_); DomainBase::operator=(std::move(other)); return *this;
diff --git a/fuzztest/internal/domains/flatbuffers_domain_impl.h b/fuzztest/internal/domains/flatbuffers_domain_impl.h index c95af4c..394921f 100644 --- a/fuzztest/internal/domains/flatbuffers_domain_impl.h +++ b/fuzztest/internal/domains/flatbuffers_domain_impl.h
@@ -391,7 +391,7 @@ using DomainT = decltype(get_optional_domain()); // Do the operation under a lock to prevent race conditions in `const` // methods. - absl::MutexLock l(&mutex_); + absl::MutexLock l(mutex_); auto it = domains_.find(field->id()); if (it == domains_.end()) { it = domains_
diff --git a/fuzztest/internal/domains/protobuf_domain_impl.h b/fuzztest/internal/domains/protobuf_domain_impl.h index 3d5f25f..39f45e2 100644 --- a/fuzztest/internal/domains/protobuf_domain_impl.h +++ b/fuzztest/internal/domains/protobuf_domain_impl.h
@@ -372,7 +372,7 @@ std::unique_ptr<std::vector<const FieldDescriptor*>>>> descriptor_to_fields ABSL_GUARDED_BY(mutex); { - absl::MutexLock l(&mutex); + absl::MutexLock l(mutex); auto it = descriptor_to_fields->find(descriptor); if (it != descriptor_to_fields->end()) return *(it->second); } @@ -381,7 +381,7 @@ for (int i = 0; i < descriptor->field_count(); ++i) { fields.push_back(descriptor->field(i)); } - absl::MutexLock l(&mutex); + absl::MutexLock l(mutex); if (ShouldEnumerateExtensions(descriptor)) { descriptor->file()->pool()->FindAllExtensions(descriptor, &fields); }