[compiler-rt] r200914 - tsan: improve error message for Go
Dmitry Vyukov
dvyukov at google.com
Thu Feb 6 01:22:31 PST 2014
Author: dvyukov
Date: Thu Feb 6 03:22:29 2014
New Revision: 200914
URL: http://llvm.org/viewvc/llvm-project?rev=200914&view=rev
Log:
tsan: improve error message for Go
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc?rev=200914&r1=200913&r2=200914&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_thread_registry.cc Thu Feb 6 03:22:29 2014
@@ -130,8 +130,13 @@ u32 ThreadRegistry::CreateThread(uptr us
tctx = context_factory_(tid);
threads_[tid] = tctx;
} else {
+#ifndef SANITIZER_GO
Report("%s: Thread limit (%u threads) exceeded. Dying.\n",
SanitizerToolName, max_threads_);
+#else
+ Printf("race: limit on %u simultaneously alive goroutines is exceeded,"
+ " dying\n", max_threads_);
+#endif
Die();
}
CHECK_NE(tctx, 0);
More information about the llvm-commits
mailing list