summaryrefslogtreecommitdiff
path: root/external/bsd/jemalloc/dist
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-11-17Support aarch64eb in */config.guess.rin
Cherry-picked from upstream: https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea Everything except external/apache2/llvm/dist/llvm/cmake/config.guess is patched, which is under vendor tag and cannot be modified. I expect that this file is not actually used as we use hand-crafted version of configure script instead of cmake for building LLVM. Note that external/apache2/llvm/autoconf/autoconf/config.guess has already been committed on Oct. 20, but commit message disappeared as cvs aborted due to "permission denied" when trying to modify the file mentioned above. Sorry for confusing you. Also note that GMP uses its own config.guess Patch for external/lgpl3/gmp/dist/config.guess is provided by ryo@. Thanks!
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-07-27Ensure that percpu_arena_update is really dead if it shouldn't work andjoerg
really alive otherwise.
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-14Sync with installed versions.christos
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-05Sync with installed files.christos
2019-03-05revert previous; not needed.christos
2019-03-05Check that the previous link exists before merging it.christos
XXX: Is that right? Fixing this makes the h_resolve test work.
2019-03-04Add FALLTHROUGH comments.christos
2019-03-04add constcondchristos
2019-03-04- fix shadowingchristos
- add constcond
2019-03-04Adjust to new nameschristos
2019-03-04adjust prototypechristos
2019-03-04use UNCONSTchristos
2019-03-04fix prototypeschristos
2019-03-04fix incorrect macro usechristos
2019-03-04fix const hashchristos
2019-03-04remove unused linechristos
2019-03-04fix shadowingchristos
2019-03-04fix prototypechristos
2019-03-04use c99 initializerschristos
2019-03-04use __format_arg__ to check format arguments.christos
2019-03-04put back __UNCONST for now.christos
2019-03-04use c99 initializerschristos
2019-03-04Add a c99 initializerchristos
2019-03-04use c99 initializerschristos
2019-03-04- add unconstchristos
- fixes for shadowing
2019-03-04fix for shadowing.christos