aboutsummaryrefslogtreecommitdiff
path: root/contrib/jemalloc/src/mutex.c
Commit message (Collapse)AuthorAgeFilesLines
* Update jemalloc to version 5.2.1Eric van Gyzen2020-04-231-5/+4
| | | | | | | | | | | | | | | | | | | Revert r354606 to restore r354605. Apply one line from jemalloc commit d01b425e5d1e1 in hash_x86_128() to fix the build with gcc, which only allows a fallthrough attribute to appear before a case or default label. Submitted by: jasone in r354605 Discussed with: jasone Reviewed by: bdrewery MFC after: never, due to gcc 4.2.1 Relnotes: yes Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D24522 Notes: svn path=/head/; revision=360233
* Revert r354605: Update jemalloc to version 5.2.1.Jason Evans2019-11-111-4/+5
| | | | | | | Compilation fails for non-llvm-based platforms. Notes: svn path=/head/; revision=354606
* Update jemalloc to version 5.2.1.Jason Evans2019-11-111-5/+4
| | | | Notes: svn path=/head/; revision=354605
* Update jemalloc to version 5.1.0.Jason Evans2018-05-111-2/+3
| | | | Notes: svn path=/head/; revision=333477
* Update jemalloc to 5.0.0.Jason Evans2017-06-151-74/+138
| | | | Notes: svn path=/head/; revision=319971
* Update jemalloc to 4.3.1.Jason Evans2016-11-091-0/+2
| | | | Notes: svn path=/head/; revision=308473
* Update jemalloc to 4.2.0.Jason Evans2016-05-131-9/+12
| | | | Notes: svn path=/head/; revision=299587
* Update jemalloc to version 4.0.0.Jason Evans2015-08-181-5/+9
| | | | Notes: svn path=/head/; revision=286866
* Fix known issues which blow up the process after dlopen("libthr.so")Konstantin Belousov2015-01-031-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (or loading a dso linked to libthr.so into process which was not linked against threading library). - Remove libthr interposers of the libc functions, including __error(). Instead, functions calls are indirected through the interposing table, similar to how pthread stubs in libc are already done. Libc by default points either to syscall trampolines or to existing libc implementations. On libthr load, libthr rewrites the pointers to the cancellable implementations already in libthr. The interposition table is separate from pthreads stubs indirection table to not pull pthreads stubs into static binaries. - Postpone the malloc(3) internal mutexes initialization until libthr is loaded. This avoids recursion between calloc(3) and static pthread_mutex_t initialization. - Reinstall signal handlers with wrapper on libthr load. The _rtld_is_dlopened(3) is used to avoid useless calls to sigaction(2) when libthr is statically referenced from the main binary. In the process, fix openat(2), swapcontext(2) and setcontext(2) interposing. The libc symbols were exported at different versions than libthr interposers. Export both libc and libthr versions from libc now, with default set to the higher version from libthr. Remove unused and disconnected swapcontext(3) userspace implementation from libc/gen. No objections from: deischen Tested by: pho, antoine (exp-run) (previous versions) Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=276630
* Update jemalloc to version 3.5.0.Jason Evans2014-01-231-1/+1
| | | | Notes: svn path=/head/; revision=261071
* Import jemalloc 3.2.0.Jason Evans2012-11-101-1/+1
| | | | Notes: svn path=/head/; revision=242844
* Import jemalloc 37b6f95dcd866f51c91488531a2efc3ed4c2b754 (dev branch,Jason Evans2012-05-101-7/+14
| | | | | | | | prior to 3.0.0 release). This version is likely very close to what will be 3.0.0. Notes: svn path=/head/; revision=235238
* Import jemalloc 9ef7f5dc34ff02f50d401e41c8d9a4a928e7c2aa (dev branch,Jason Evans2012-04-171-0/+153
prior to 3.0.0 release) as contrib/jemalloc, and integrate it into libc. The code being imported by this commit diverged from lib/libc/stdlib/malloc.c in March 2010, which means that a portion of the jemalloc 1.0.0 ChangeLog entries are relevant, as are the entries for all subsequent releases. Notes: svn path=/head/; revision=234370