[PATCH] D23107: [MSAN][MIPS] Fix fork.cc test on MIPS

Sagar Thakur via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 3 00:14:20 PDT 2016


slthakur created this revision.
slthakur added reviewers: eugenis, kcc, samsonov.
slthakur added subscribers: mohit.bhakkad, jaydeep, llvm-commits.
slthakur set the repository for this revision to rL LLVM.
slthakur added a project: Sanitizers.

This test created too many chained origins in the thread function copy_uninit_thread which caused the child process to hang while reading the chained origins. Therefore adding a sleep in the loop where these chained origins are created to reduce the number of chained origins.

Repository:
  rL LLVM

https://reviews.llvm.org/D23107

Files:
  test/msan/fork.cc

Index: test/msan/fork.cc
===================================================================
--- test/msan/fork.cc
+++ test/msan/fork.cc
@@ -31,6 +31,7 @@
   while (true) {
     v = x;
     x = v;
+    usleep(10000);
     if (__atomic_load_n(&done, __ATOMIC_RELAXED))
       return;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23107.66620.patch
Type: text/x-patch
Size: 288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160803/a295921f/attachment.bin>


More information about the llvm-commits mailing list