summaryrefslogtreecommitdiff
path: root/external/bsd/jemalloc/dist/src
AgeCommit message (Collapse)Author
2023-07-05Revert "jemalloc: Enforce alignment-must-divide-size rule of aligned_alloc."riastradh
Apparently this restriction was lifted in C17, and this was even documented in a part of the man page I didn't notice because I got stuck at the incomplete sentence `The aligned_alloc function conforms to.'. Sorry for the noise, folks.
2023-07-04jemalloc: Enforce alignment-must-divide-size rule of aligned_alloc.riastradh
C11, Sec. 7.22.3.1 The aligned_alloc function, paragraph 2, p. 348: The value of alignment shall be a valid alignment supported by the implementation and the value of size shall be an integral multiple of alignment. posix_memalign does not appear to have any corresponding constraint. XXX pullup-10
2023-07-01jemalloc: enable lint again, it is no longer brokenrillig
Since today, lint handles unnamed struct/union correctly.
2023-06-26jemalloc: reduce CONSTCOND diff to upstreamrillig
Since 2021-01-31, lint no longer needs these comments.
2020-09-06Appease gcc-9christos
2020-06-04If _malloc_thread_cleanup is implement, call it from libpthread.joerg
Provide the hook from modern jemalloc to avoid using TSD for the thread destruction cleanup as it can result in reentrancy crashes if fork is called from a thread that never called malloc as it will result in a late malloc from the pre-fork synchronisation handler.
2020-05-15Hook up proper fork lock handling for malloc:joerg
- lock all relevant mutexes just before fork - unlock all mutexes just after fork in the parent - full reinit non-spinlocks in the child This is not using the normal pthread_atfork interface to ensure order of operation, malloc is used as implementation detail too often.
2020-05-15When using default mutex types, don't setup attributes for init.joerg
2020-02-15jemalloc: Avoid variable length array with length 0kamil
Cherry-pick upstrem patch. https://github.com/jemalloc/jemalloc/pull/1768
2020-01-06set that NetBSD overcommits (from maya)christos
2019-10-03realloc(ptr, 0) != { free(ptr); return NULL; }christos
http://www.open-std.org/jtc1/sc22/wg14/www/docs/summary.htm#dr_400
2019-04-26Enforce alignment also if the compiled in PAGE_SIZE is bigger thanchristos
getpagesize()
2019-04-26Undo previous, it is moving us in the wrong direction.christos
2019-04-24Allow os_page sizes greater than the built-in page size. This can happenchristos
for example for COMPAT_NETBSD32 sparc binaries (4K page size because of MIN_PAGE_SIZE), running on sparc64 (8K pages).
2019-03-16we have MAP_ALIGNED, so use it (although it does not do anything by default)christos
2019-03-16PR/54062: Fix the "snprintf_float" test failing after the jemalloc importchristos
issue: jemalloc uses a lot more memory (if it can find it) by default and this test limited the amount of memory it could get, causing it to get to an error path with a missing mutex_unlock...
2019-03-14revert previous sshd hack (from Rin Okuyama)christos
2019-03-14Grr, disable the "time goes backwards" test here since this breaks toochristos
frequently. We need a real fix.
2019-03-14Remove __clang___ hacks for noreturn, reduce footprint when we don't compilechristos
with JEMALLOC_PROF. More to do here.
2019-03-12- descend to build libjemallocchristos
- namespace protect all functions __je - provide getters and setters for malloc_conf and malloc_message
2019-03-11Add an initializatin that is not needed when the optimizer works...christos
2019-03-10Add noreturn where needed. In the prof case because of cassert() and returnchristos
in some functions we disable the cassert() for clang. We should really have a JEMALLOC_PROF_NORETURN and a way to mark the remaining of the function unreachable.
2019-03-10Rename je_mallctltomib to je_mallctlnametomibkamil
This unbreaks the build.
2019-03-10Make the non-standard jemalloc api weak.christos
2019-03-04put back __UNCONST for now.christos
2019-03-04- add unconstchristos
- fixes for shadowing
2019-03-04fix for shadowing.christos
2019-03-04add __UNCONSTchristos
2019-03-04fix prototypeschristos
2019-03-04- add UNCONSTchristos
- fix for shadowing
2019-03-04- fix for shadowingchristos
- add unconst - add hack for broken lint - add cast for ctype macros - disable realloc(ptr, 0) returning NULL for non-NULL ptr (compatibility)
2019-03-04rename initializer for consistency.christos
2019-03-04remove needless casts after fixing prototype.christos
2019-03-04rename for shadowingchristos
2019-03-04import jemalloc-5.1.0christos