Thread restart is a feature on RTEMS where a thread may resume at an
arbitrary function entry point, but the stack and TLS state are reset.
Use AsanThread::Restart() to do the corresponding bookeeping.
|124 ↗||(On Diff #145475)|
The problem is thread->GetStackBounds() is private. I moved the definition of AsanThread::Restart() to asan_rtems.cc, but I still need the declaration in asan_thread.h. Let me know what you think.