[libcxx-commits] [libcxx] 5b205ff - Commenting out atomics with padding to unbreak MSAN tests

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 16 16:12:24 PDT 2020


Author: ogiroux
Date: 2020-09-16T16:12:10-07:00
New Revision: 5b205ff474120e086435724dc04f784b784fdd1a

URL: https://github.com/llvm/llvm-project/commit/5b205ff474120e086435724dc04f784b784fdd1a
DIFF: https://github.com/llvm/llvm-project/commit/5b205ff474120e086435724dc04f784b784fdd1a.diff

LOG: Commenting out atomics with padding to unbreak MSAN tests

Added: 
    

Modified: 
    libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/atomic_helpers.h

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/atomic_helpers.h b/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/atomic_helpers.h
index d06cca9bbe5c..c248e3ab1758 100644
--- a/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/atomic_helpers.h
+++ b/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/atomic_helpers.h
@@ -23,9 +23,13 @@ struct UserAtomicType
     { return x.i == y.i; }
 };
 
+/*
+
+Enable these once we have P0528 
+
 struct WeirdUserAtomicType
 {
-    char i, j, k; /* the 3 chars of doom */
+    char i, j, k; // the 3 chars of doom
 
     explicit WeirdUserAtomicType(int d = 0) TEST_NOEXCEPT : i(d) {}
 
@@ -35,7 +39,7 @@ struct WeirdUserAtomicType
 
 struct PaddedUserAtomicType
 {
-    char i; int j; /* probably lock-free? */
+    char i; int j; // probably lock-free?
 
     explicit PaddedUserAtomicType(int d = 0) TEST_NOEXCEPT : i(d) {}
 
@@ -43,6 +47,8 @@ struct PaddedUserAtomicType
     { return x.i == y.i; }
 };
 
+*/
+
 struct LargeUserAtomicType
 {
     int i, j[127]; /* decidedly not lock-free */
@@ -89,15 +95,19 @@ struct TestEachAtomicType {
     void operator()() const {
         TestEachIntegralType<TestFunctor>()();
         TestFunctor<UserAtomicType>()();
-        TestFunctor<PaddedUserAtomicType>()();
 #ifndef __APPLE__
         /*
             These aren't going to be lock-free,
             so some libatomic.a is necessary.
         */
-        //TestFunctor<WeirdUserAtomicType>()(); //< Actually, nobody is ready for this until P0528
         TestFunctor<LargeUserAtomicType>()();
 #endif
+/*
+    Enable these once we have P0528 
+    
+        TestFunctor<PaddedUserAtomicType>()();
+        TestFunctor<WeirdUserAtomicType>()();
+*/
         TestFunctor<int*>()();
         TestFunctor<const int*>()();
         TestFunctor<float>()();


        


More information about the libcxx-commits mailing list