[ASan/Win] Add a comment about DCL-using-static vs threads

llvm-svn: 209414
This commit is contained in:
Timur Iskhodzhanov 2014-05-22 10:24:48 +00:00
parent 49802ef93b
commit 818b2e8f71
1 changed files with 1 additions and 0 deletions

View File

@ -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");