[compiler-rt] r209414 - [ASan/Win] Add a comment about DCL-using-static vs threads
Timur Iskhodzhanov
timurrrr at google.com
Thu May 22 03:24:49 PDT 2014
Author: timurrrr
Date: Thu May 22 05:24:48 2014
New Revision: 209414
URL: http://llvm.org/viewvc/llvm-project?rev=209414&view=rev
Log:
[ASan/Win] Add a comment about DCL-using-static vs threads
Modified:
compiler-rt/trunk/lib/asan/asan_dll_thunk.cc
Modified: compiler-rt/trunk/lib/asan/asan_dll_thunk.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_dll_thunk.cc?rev=209414&r1=209413&r2=209414&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_dll_thunk.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_dll_thunk.cc Thu May 22 05:24:48 2014
@@ -170,6 +170,7 @@ extern "C" {
void __asan_init_v3() {
typedef void (*fntype)();
static fntype fn = 0;
+ // __asan_init_v3 is expected to be called by only one thread.
if (fn) return;
fn = (fntype)getRealProcAddressOrDie("__asan_init_v3");
More information about the llvm-commits
mailing list