Skip to content

Commit

Permalink
[scudo] Fix QuarantineChunksUpToSize failing test on AArch64
Browse files Browse the repository at this point in the history
Summary:
Warm-up the other 2 sizes used by the tests, which should get rid of a failure
on AArch64.

Reviewers: alekseyshl

Reviewed By: alekseyshl

Subscribers: aemerson, rengolin, llvm-commits, kristof.beyls

Differential Revision: https://reviews.llvm.org/D35806

llvm-svn: 308907
  • Loading branch information
Kostya Kortchinsky committed Jul 24, 2017
1 parent 5fbc870 commit e6f1b72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler-rt/test/scudo/quarantine.cpp
Expand Up @@ -28,9 +28,15 @@ int main(int argc, char **argv)
p = malloc(size);
assert(p);
free(p);
p = malloc(size + 1);
assert(p);
free(p);
assert(posix_memalign(&p, alignment, size) == 0);
assert(p);
free(p);
assert(posix_memalign(&p, alignment, size + 1) == 0);
assert(p);
free(p);

if (!strcmp(argv[1], "zeroquarantine")) {
// Verifies that a chunk is deallocated right away when the local and
Expand Down

0 comments on commit e6f1b72

Please sign in to comment.