Currently we are not enforcing the success of pthread_once, and
pthread_setspecific. Errors could lead to harder to debug issues later in
the thread's life. This adds checks for a 0 return value for both.
If pthread_setspecific fails in the teardown path, opt for an immediate
teardown as opposed to a fatal failure.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 6763 Build 6763: arc lint + arc unit
Event Timeline
Comment Actions
Other Sanitizers use GetPthreadDestructorIterations() instead of
PTHREAD_DESTRUCTOR_ITERATIONS, so do that here as well.