[compiler-rt] 655c0bf - [NFC][sanitizer] Use more bytes of sanitizer_stack_store_test pointers

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 2 11:49:33 PST 2021


Author: Vitaly Buka
Date: 2021-12-02T11:49:29-08:00
New Revision: 655c0bfe2cb40a3e628e319dd90c35ef722d18ba

URL: https://github.com/llvm/llvm-project/commit/655c0bfe2cb40a3e628e319dd90c35ef722d18ba
DIFF: https://github.com/llvm/llvm-project/commit/655c0bfe2cb40a3e628e319dd90c35ef722d18ba.diff

LOG: [NFC][sanitizer] Use more bytes of sanitizer_stack_store_test pointers

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp
index d6aa1fccaf73..031f2d9cd8ec 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp
@@ -26,7 +26,7 @@ class StackStoreTest : public testing::Test {
   template <typename Fn>
   void ForEachTrace(Fn fn, uptr n = 1000000) {
     std::vector<uptr> frames(kStackTraceMax);
-    std::iota(frames.begin(), frames.end(), 1);
+    std::iota(frames.begin(), frames.end(), 0x100000);
     MurMur2HashBuilder h(0);
     for (uptr i = 0; i < n; ++i) {
       h.add(i);


        


More information about the llvm-commits mailing list