Any feedback? <div><br></div><div>--kcc<br><div><br><br><div class="gmail_quote">On Wed, Jan 18, 2012 at 11:38 AM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com">kcc@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, <div><br></div><div>The proposed patch is the first step towards race detection built into LLVM/Clang. </div><div>
The tool will be similar to AddressSanitizer in the way it works: </div><div>   1. A simple instrumentation module in lib/Transforms/Instrumentation/ThreadSanitizer.cpp (this patch)</div>
<div>   2. -fthread-sanitizer flag in clang (next patch)</div><div>   3. A run-time library in projects/compiler-rt/lib/tsan (patches will follow).</div><div><br></div><div>The patch: <a href="http://codereview.appspot.com/5545054/" target="_blank">http://codereview.appspot.com/5545054/</a> (also attached). </div>

<div><br></div><div>Here are some links about the previous versions of ThreadSanitizer</div><div>- <a href="http://code.google.com/p/data-race-test/" target="_blank">http://code.google.com/p/data-race-test/</a> -- main project page</div>

<div>- <a href="http://code.google.com/p/data-race-test/wiki/CompileTimeInstrumentation" target="_blank">http://code.google.com/p/data-race-test/wiki/CompileTimeInstrumentation</a> - description of the LLVM-based prototype (we are not going to reuse that code, but will reuse the ideas). </div>

<div>- <a href="http://code.google.com/p/data-race-test/wiki/GccInstrumentation" target="_blank">http://code.google.com/p/data-race-test/wiki/GccInstrumentation</a> - description of the GCC-based prototype. </div><div>- <a href="http://dev.chromium.org/developers/how-tos/using-valgrind/threadsanitizer" target="_blank">http://dev.chromium.org/developers/how-tos/using-valgrind/threadsanitizer</a> - ThreadSanitizer for Chromium </div>

<div><div>- <a href="http://data-race-test.googlecode.com/files/ThreadSanitizer.pdf" target="_blank">http://data-race-test.googlecode.com/files/ThreadSanitizer.pdf</a> -- paper about Valgrind-based tool published at WBIA'09 </div>
- <a href="http://data-race-test.googlecode.com/files/ThreadSanitizerLLVM.pdf" target="_blank">http://data-race-test.googlecode.com/files/ThreadSanitizerLLVM.pdf</a> -- paper about LLVM-based tool published at RV'2011<br>

<div> <br><div>Thanks, </div></div></div><div><br></div><div>--kcc </div>
</blockquote></div><br></div></div>