[libcxx-commits] [libcxx] r369482 - Attempt to fix MSAN failures in benchmarks

Eric Fiselier via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 20 17:14:48 PDT 2019


Author: ericwf
Date: Tue Aug 20 17:14:48 2019
New Revision: 369482

URL: http://llvm.org/viewvc/llvm-project?rev=369482&view=rev
Log:
Attempt to fix MSAN failures in benchmarks

Modified:
    libcxx/trunk/benchmarks/algorithms.bench.cpp

Modified: libcxx/trunk/benchmarks/algorithms.bench.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/benchmarks/algorithms.bench.cpp?rev=369482&r1=369481&r2=369482&view=diff
==============================================================================
--- libcxx/trunk/benchmarks/algorithms.bench.cpp (original)
+++ libcxx/trunk/benchmarks/algorithms.bench.cpp Tue Aug 20 17:14:48 2019
@@ -256,7 +256,13 @@ int main(int argc, char** argv) {
     return 1;
 
   const std::vector<size_t> Quantities = {1 << 0, 1 << 2,  1 << 4,  1 << 6,
-                                          1 << 8, 1 << 10, 1 << 14, 1 << 18};
+                                          1 << 8, 1 << 10, 1 << 14,
+    // Running each benchmark in parallel consumes too much memory with MSAN
+    // and can lead to the test process being killed.
+#if !TEST_HAS_FEATURE(memory_sanitizer)
+                                          1 << 18
+#endif
+  };
   makeCartesianProductBenchmark<Sort, AllValueTypes, AllOrders>(Quantities);
   makeCartesianProductBenchmark<StableSort, AllValueTypes, AllOrders>(
       Quantities);




More information about the libcxx-commits mailing list