diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cpp --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cpp +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cpp @@ -74,6 +74,8 @@ TestRB(); } +// Solaris/sparcv9 uses the full 64-bit address space. +#if !(SANITIZER_SOLARIS && defined(__sparcv9)) template CompactRingBuffer *AllocCompactRingBuffer(size_t count) { size_t sz = sizeof(T) * count; @@ -94,5 +96,6 @@ EXPECT_EQ(top - i - 1, (*R)[i]); } } +#endif // !(SANITIZER_SOLARIS && __sparcv9) #endif } // namespace __sanitizer