Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 25156 Build 25155: arc lint + arc unit
Event Timeline
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | ||
---|---|---|
234 | I think it will be better to call these annotations in a more generic way. Later we may need to use for other functions as well, e.g. phtread_mutex_lock. Internally we call them potentially_blocking_region_begin/end, so if we don't have better naming ideas we could just copy that. | |
880 | For my education, why can't at_scope_exit call the function 2 or 3 times? Can't it create 2 or 3 copies of RunOnDestruction, each of which will call the function? |
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | ||
---|---|---|
880 | Don't we need to define move constructor for RunOnDestruction, delete copy constructor and all that stuff? |
Should apply to anything with __cxa_guard_acquire interceptor.
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | ||
---|---|---|
880 | That's https://en.cppreference.com/w/cpp/language/copy_elision |
I think it will be better to call these annotations in a more generic way. Later we may need to use for other functions as well, e.g. phtread_mutex_lock. Internally we call them potentially_blocking_region_begin/end, so if we don't have better naming ideas we could just copy that.