diff options
author | 2021-12-01 15:08:07 -0800 | |
---|---|---|
committer | 2021-12-02 14:11:24 -0500 | |
commit | e11e039e02ef30a98a7928ce6c59cebe096dd753 (patch) | |
tree | 40e34c4abd819883b86b423ebe5ef77b960e82af /absl/container/internal/raw_hash_set_test.cc | |
parent | cad715dbf375a336fcb0b2b0ef57fc2b7a1b0b4b (diff) |
Export of internal Abseil changes
--
08d99ee216b7bfac1c5182db952d4e053e5ebc31 by Abseil Team <absl-team@google.com>:
Fix race condition reported by tsan on `inline_element_size` in hashtablez.
PiperOrigin-RevId: 413520771
GitOrigin-RevId: 08d99ee216b7bfac1c5182db952d4e053e5ebc31
Change-Id: Ibd396803f04a659cfbdb8dc7ec37511643657694
Diffstat (limited to 'absl/container/internal/raw_hash_set_test.cc')
-rw-r--r-- | absl/container/internal/raw_hash_set_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/container/internal/raw_hash_set_test.cc b/absl/container/internal/raw_hash_set_test.cc index 362b3cae..4b9f6cc0 100644 --- a/absl/container/internal/raw_hash_set_test.cc +++ b/absl/container/internal/raw_hash_set_test.cc @@ -2075,7 +2075,8 @@ TEST(RawHashSamplerTest, Sample) { std::memory_order_relaxed)]++; reservations[info.max_reserve.load(std::memory_order_relaxed)]++; } - EXPECT_EQ(info.inline_element_size, sizeof(int64_t)); + EXPECT_EQ(info.inline_element_size.load(std::memory_order_relaxed), + sizeof(int64_t)); ++end_size; }); |