[PATCH] [ASan Win] Simplify and improve the way we forward ASan interface calls from DLLs

Kostya Serebryany kcc at google.com
Tue May 20 21:35:11 PDT 2014


On Wed, May 21, 2014 at 12:58 AM, Reid Kleckner <rnk at google.com> wrote:

> ================
> Comment at: lib/asan/asan_dll_thunk.cc:173
> @@ +172,3 @@
> +    static fntype fn = 0;
> +    if (fn) return;
> +
> ----------------
> Do you guys worry about concurrent calls to __asan_init_v3, or can you
> always initialize before threads are created?
>
Yes, we expect that __asan_init_v3 is called before any threads (otherwise
it would be a disaster indeed).

>
> http://reviews.llvm.org/D3848
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140521/165e06c6/attachment.html>


More information about the llvm-commits mailing list