Skip to content

Commit 2f183d6

Browse files
committed
[test][hwasan] Try to deflake release-shadow.c
1 parent 3b1a686 commit 2f183d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const size_t kMapSize = kNumPages * kPageSize;
2323
void sync_rss() {
2424
char *page = (char *)mmap(0, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);
2525
// Linux kernel updates RSS counters after a set number of page faults.
26-
for (int i = 0; i < 1000; ++i) {
26+
for (int i = 0; i < 10000; ++i) {
2727
page[0] = 42;
2828
madvise(page, kPageSize, MADV_DONTNEED);
2929
}

0 commit comments

Comments
 (0)