Dimitry Andric 1c21bfb1b1 Apply fix for ThreadSanitizer false positive data race reports
Merge commit 28fb22c90fe7 from llvm git (by Dimitry Andric):

  [TSan] Handle FreeBSD specific indirection of libpthread functions

  Similar to 60cc1d3218fc for NetBSD, add aliases and interceptors for the
  following pthread related functions:

  - pthread_cond_init(3)
  - pthread_cond_destroy(3)
  - pthread_cond_signal(3)
  - pthread_cond_broadcast(3)
  - pthread_cond_wait(3)
  - pthread_mutex_init(3)
  - pthread_mutex_destroy(3)
  - pthread_mutex_lock(3)
  - pthread_mutex_trylock(3)
  - pthread_mutex_unlock(3)
  - pthread_rwlock_init(3)
  - pthread_rwlock_destroy(3)
  - pthread_rwlock_rdlock(3)
  - pthread_rwlock_tryrdlock(3)
  - pthread_rwlock_wrlock(3)
  - pthread_rwlock_trywrlock(3)
  - pthread_rwlock_unlock(3)
  - pthread_once(3)
  - pthread_sigmask(3)

  In FreeBSD's libc, a number of internal aliases of the pthread functions
  are invoked, typically with an additional prefixed underscore, e.g.
  _pthread_cond_init() and so on.

  ThreadSanitizer needs to intercept these aliases too, otherwise some
  false positive reports about data races might be produced.

  Reviewed By: dvyukov

  Differential Revision: https://reviews.llvm.org/D119034

MFC after:	3 days
2022-02-07 19:39:02 +01:00
..
2022-02-05 22:39:59 +01:00
2022-02-05 12:26:16 -08:00
2022-01-28 09:56:21 +01:00
2022-01-18 08:10:33 -08:00
2021-12-06 16:36:44 -05:00
2021-03-01 16:01:44 +01:00
2022-02-05 21:55:03 -05:00
2022-01-03 22:03:39 -08:00
2021-07-17 22:20:44 -07:00
2021-11-15 16:58:58 +01:00
2021-12-06 16:36:44 -05:00
2021-11-06 16:24:36 -06:00
2021-02-23 17:47:07 +00:00
2021-11-05 09:39:56 +01:00
2021-05-20 00:12:27 +03:00
2022-01-23 21:58:36 -08:00
2022-01-18 08:17:08 -08:00