waltl added a comment. It's called by __sanitizer_thread_start_hook() defined in asan_rtems.cc (See https://reviews.llvm.org/D46468), which in turn will be call by RTEMS, in the code that starts/restarts a thread. Repository: rL LLVM https://reviews.llvm.org/D46466