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.
Details
Details
- Reviewers
vitalybuka eugenis alekseyshl
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 18229 Build 18229: arc lint + arc unit
Event Timeline
compiler-rt/lib/asan/asan_thread.cc | ||
---|---|---|
118 ↗ | (On Diff #145283) | add a comment explaining why we need Restart |
Comment Actions
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.
compiler-rt/lib/asan/asan_thread.cc | ||
---|---|---|
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. |