[clang-tools-extra] 5091357 - [clangd] Disable ScopedMemoryLimit on tsan builds
    Kadir Cetinkaya via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Tue Jan 17 00:09:57 PST 2023
    
    
  
Author: Kadir Cetinkaya
Date: 2023-01-17T09:09:08+01:00
New Revision: 5091357e1ba8bc709680c327fe71a90676f86197
URL: https://github.com/llvm/llvm-project/commit/5091357e1ba8bc709680c327fe71a90676f86197
DIFF: https://github.com/llvm/llvm-project/commit/5091357e1ba8bc709680c327fe71a90676f86197.diff
LOG: [clangd] Disable ScopedMemoryLimit on tsan builds
This is causing flakiness, see https://lab.llvm.org/buildbot/#/builders/131/builds/39272
Added: 
    
Modified: 
    clang-tools-extra/clangd/unittests/SerializationTests.cpp
Removed: 
    
################################################################################
diff  --git a/clang-tools-extra/clangd/unittests/SerializationTests.cpp b/clang-tools-extra/clangd/unittests/SerializationTests.cpp
index 38e8612e3803e..35a2e2ba77a65 100644
--- a/clang-tools-extra/clangd/unittests/SerializationTests.cpp
+++ b/clang-tools-extra/clangd/unittests/SerializationTests.cpp
@@ -325,7 +325,7 @@ TEST(SerializationTest, CmdlTest) {
 // rlimit is part of POSIX. RLIMIT_AS does not exist in OpenBSD.
 // Sanitizers use a lot of address space, so we can't apply strict limits.
 #if LLVM_ON_UNIX && defined(RLIMIT_AS) && !LLVM_ADDRESS_SANITIZER_BUILD &&     \
-    !LLVM_MEMORY_SANITIZER_BUILD
+    !LLVM_MEMORY_SANITIZER_BUILD && !LLVM_THREAD_SANITIZER_BUILD
 class ScopedMemoryLimit {
   struct rlimit OriginalLimit;
   bool Succeeded = false;
        
    
    
More information about the cfe-commits
mailing list