<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>