[Bug 220767] lang/beignet: hangs if consumer is not linked against libpthread after jemalloc 5.0.0 update

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 23 06:51:07 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220767

--- Comment #4 from Jan Beich <jbeich at FreeBSD.org> ---
Do we have tests for base r276630? For one, jemalloc 5.0.0 changed

  bool
  malloc_mutex_first_thread(void)
  {

  #ifdef JEMALLOC_MUTEX_INIT_CB
          postpone_init = false;
          while (postponed_mutexes != NULL) {
                  if (_pthread_mutex_init_calloc_cb(&postponed_mutexes->lock,
                      bootstrap_calloc) != 0)
                          return (true);
                  postponed_mutexes = postponed_mutexes->postponed_next;
          }
  #endif
          return (false);
  }

into

  bool
  malloc_mutex_first_thread(void) {

  #ifndef JEMALLOC_MUTEX_INIT_CB
          return (malloc_mutex_first_thread());
  #else
          return (false);
  #endif
  }

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-threads mailing list