[compiler-rt] 2f183d6 - [test][hwasan] Try to deflake release-shadow.c

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 7 17:55:14 PDT 2023


Author: Vitaly Buka
Date: 2023-09-07T17:55:03-07:00
New Revision: 2f183d6efb78f3c4c39ebec74958b37e5a62823a

URL: https://github.com/llvm/llvm-project/commit/2f183d6efb78f3c4c39ebec74958b37e5a62823a
DIFF: https://github.com/llvm/llvm-project/commit/2f183d6efb78f3c4c39ebec74958b37e5a62823a.diff

LOG: [test][hwasan] Try to deflake release-shadow.c

Added: 
    

Modified: 
    compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c b/compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c
index d893b9ec7471c67..3271ab58ba26e55 100644
--- a/compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c
+++ b/compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c
@@ -23,7 +23,7 @@ const size_t kMapSize = kNumPages * kPageSize;
 void sync_rss() {
   char *page = (char *)mmap(0, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);
   // Linux kernel updates RSS counters after a set number of page faults.
-  for (int i = 0; i < 1000; ++i) {
+  for (int i = 0; i < 10000; ++i) {
     page[0] = 42;
     madvise(page, kPageSize, MADV_DONTNEED);
   }


        


More information about the llvm-commits mailing list