<div dir="ltr">The condition is link-time (i.e. later than compile-time but earlier than run-time)<br></div><br><div class="gmail_quote">On Wed Feb 18 2015 at 10:45:01 PM Timur Iskhodzhanov <<a href="mailto:timurrrr@google.com">timurrrr@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I don't quite understand your proposal.<div><br></div><div>Is it</div><div>a) leave the instrumentation without any changes</div><div>b) in the RTL, make __asan_unregister_global a no-op on Windows</div><div>c) in the RTL, make __asan_register_global call atexit() to schedule asan::UnregisterGlobal?</div><div><br></div><div>Or am I missing something?</div><div><br></div><div>Please note atexit() does not allow one to pass arguments/context to the callee function.</div></div></blockquote></div>