This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by timurrrr on May 20 2014, 7:15 AM.

Details

Reviewers
kcc

Diff Detail

Event Timeline

timurrrr updated this revision to Diff 9624.May 20 2014, 7:15 AM
timurrrr retitled this revision from to [ASan Win] Simplify and improve the way we forward ASan interface calls from DLLs.
timurrrr updated this object.
timurrrr edited the test plan for this revision. (Show Details)
timurrrr added a reviewer: kcc.
timurrrr added a subscriber: Unknown Object (MLST).
kcc accepted this revision.May 20 2014, 7:19 AM
kcc edited edge metadata.

LGTM
Clever!

This revision is now accepted and ready to land.May 20 2014, 7:19 AM
timurrrr closed this revision.May 20 2014, 7:34 AM

Committed as r209210, thanks!

rnk added a subscriber: rnk.May 20 2014, 1:58 PM
rnk added inline comments.
lib/asan/asan_dll_thunk.cc
173

Do you guys worry about concurrent calls to __asan_init_v3, or can you always initialize before threads are created?

I've added a comment about threading in r209414.

2014-05-21 0:58 GMT+04:00 Reid Kleckner <rnk@google.com>:

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?

http://reviews.llvm.org/D3848