Details
Details
Diff Detail
Diff Detail
- Repository
- rCRT Compiler Runtime
Event Timeline
| compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | ||
|---|---|---|
| 234 ↗ | (On Diff #174500) | 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 ↗ | (On Diff #174500) | 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 ↗ | (On Diff #174500) | Don't we need to define move constructor for RunOnDestruction, delete copy constructor and all that stuff? |
Comment Actions
Should apply to anything with __cxa_guard_acquire interceptor.
| compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | ||
|---|---|---|
| 880 ↗ | (On Diff #174500) | That's https://en.cppreference.com/w/cpp/language/copy_elision |