[PATCH] [ASan/Win] Fix PR22545 __asan_unregister_globals is not called when using -MD runtimes

Timur Iskhodzhanov timurrrr at google.com
Wed Feb 18 11:45:02 PST 2015


I don't quite understand your proposal.

Is it
a) leave the instrumentation without any changes
b) in the RTL, make __asan_unregister_global a no-op on Windows
c) in the RTL, make __asan_register_global call atexit() to schedule
asan::UnregisterGlobal?

Or am I missing something?

Please note atexit() does not allow one to pass arguments/context to the
callee function.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150218/adc0961d/attachment.html>


More information about the llvm-commits mailing list