From 65d35bfd22ef04e4e892f332b262010c7db2ffe5 Mon Sep 17 00:00:00 2001 From: Randell Jesup Date: Mon, 11 Dec 2023 17:09:04 +0000 Subject: [PATCH] Bug 1869190: Add threadsafety annotations to Bench.cpp r=xpcom-reviewers,emilio Differential Revision: https://phabricator.services.mozilla.com/D195985 --- xpcom/rust/gtest/bench-collections/Bench.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpcom/rust/gtest/bench-collections/Bench.cpp b/xpcom/rust/gtest/bench-collections/Bench.cpp index 41152470c778..0035d27ed6c3 100644 --- a/xpcom/rust/gtest/bench-collections/Bench.cpp +++ b/xpcom/rust/gtest/bench-collections/Bench.cpp @@ -268,11 +268,11 @@ class BenchCollections : public ::testing::Test { private: // Random values used in the benchmarks. - static void** sVals; + static void** sVals MOZ_GUARDED_BY(sValsMutex); // A mutex that protects all benchmark operations, ensuring that two // benchmarks never run concurrently. - static StaticMutex sValsMutex MOZ_UNANNOTATED; + static StaticMutex sValsMutex; }; void** BenchCollections::sVals;