diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc index eefbfb23e1f7..c0d2e2a75862 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc @@ -743,17 +743,17 @@ TEST(SanitizerCommon, LargeMmapAllocatorBlockBegin) { for (uptr i = 0; i < kNumAllocs * kNumAllocs; i++) { // if ((i & (i - 1)) == 0) fprintf(stderr, "[%zd]\n", i); char *p1 = allocated[i % kNumAllocs]; - EXPECT_EQ(p1, a.GetBlockBeginFastSingleThreaded(p1)); - EXPECT_EQ(p1, a.GetBlockBeginFastSingleThreaded(p1 + size / 2)); - EXPECT_EQ(p1, a.GetBlockBeginFastSingleThreaded(p1 + size - 1)); - EXPECT_EQ(p1, a.GetBlockBeginFastSingleThreaded(p1 - 100)); + EXPECT_EQ(p1, a.GetBlockBeginFastLocked(p1)); + EXPECT_EQ(p1, a.GetBlockBeginFastLocked(p1 + size / 2)); + EXPECT_EQ(p1, a.GetBlockBeginFastLocked(p1 + size - 1)); + EXPECT_EQ(p1, a.GetBlockBeginFastLocked(p1 - 100)); } for (uptr i = 0; i < kNumExpectedFalseLookups; i++) { void *p = reinterpret_cast(i % 1024); - EXPECT_EQ((void *)0, a.GetBlockBeginFastSingleThreaded(p)); + EXPECT_EQ((void *)0, a.GetBlockBeginFastLocked(p)); p = reinterpret_cast(~0L - (i % 1024)); - EXPECT_EQ((void *)0, a.GetBlockBeginFastSingleThreaded(p)); + EXPECT_EQ((void *)0, a.GetBlockBeginFastLocked(p)); } for (uptr i = 0; i < kNumAllocs; i++)