git: pthreads - Bypass third-party allocators for internal allocations

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Oct 29 16:12:46 PDT 2019


commit e7bf3f778c8dcdc20295c8cd8797c87067f76274
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Oct 29 16:09:33 2019 -0700

    pthreads - Bypass third-party allocators for internal allocations
    
    * Adjust libthread_xu to always use libc's malloc/free (__malloc,
      __free), bypassing third party allocators.
    
    * Fixes interactions between third party alocators and pthreads
      which often cause deadlocks or other chicken-and-egg issues,
      or require serious hacks to work around.

Summary of changes:
 lib/libthread_xu/thread/thr_attr.c        | 11 ++++++-----
 lib/libthread_xu/thread/thr_barrier.c     |  7 ++++---
 lib/libthread_xu/thread/thr_barrierattr.c |  7 ++++---
 lib/libthread_xu/thread/thr_clean.c       |  6 +++---
 lib/libthread_xu/thread/thr_cond.c        | 12 ++++++------
 lib/libthread_xu/thread/thr_condattr.c    |  8 ++++----
 lib/libthread_xu/thread/thr_fork.c        |  7 ++++---
 lib/libthread_xu/thread/thr_init.c        |  4 +++-
 lib/libthread_xu/thread/thr_list.c        |  6 +++---
 lib/libthread_xu/thread/thr_mutex.c       |  7 ++++---
 lib/libthread_xu/thread/thr_mutexattr.c   |  8 ++++----
 lib/libthread_xu/thread/thr_private.h     |  8 ++++++++
 lib/libthread_xu/thread/thr_pspinlock.c   |  7 +++++--
 lib/libthread_xu/thread/thr_rwlock.c      | 11 +++++------
 lib/libthread_xu/thread/thr_rwlockattr.c  |  9 +++++----
 lib/libthread_xu/thread/thr_sem.c         |  8 ++++----
 16 files changed, 72 insertions(+), 54 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e7bf3f778c8dcdc20295c8cd8797c87067f76274


-- 
DragonFly BSD source repository


More information about the Commits mailing list