summaryrefslogtreecommitdiff
path: root/external/bsd/jemalloc
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.
2023-06-26jemalloc: remove redundant CONSTCOND commentsrillig
Since 2021-01-31, lint no longer needs them.
2021-08-15jemalloc: suppress two irrelevant lint warningsrillig
2021-07-06Remove -O0 hack for alpha; root cause has been addressed.thorpej
2020-12-16For alpha, apply -O0 hack again to rtree.c for GCC9.rin
Otherwise, GDB11 crashes in strange ways.
2020-12-16Correct and extend comments on VA for alpha. No binary changes.rin
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-10-07PR port-alpha/54307rin
GCC 9.3 seems to be able to compile rtree.c with -O2: - No new regressions in ATF. - System survives over a night, at least, under heavy loads. On the other hand, unfortunately, GCC 9.3 still miscompiles tcache.c with -O2 or -O1. For example, even ``gcc -g hello.c'' fails with ICE if tcache.c is compiled with -O[12] in libc.
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-04-21Drop obsolete special case for clang/ppc.joerg
2020-02-15jemalloc: Avoid variable length array with length 0kamil
Cherry-pick upstrem patch. https://github.com/jemalloc/jemalloc/pull/1768
2020-02-14Fix undefined behavior in hash.h (jemalloc)kamil
Cherry-pick upstream patch: Fix Undefined Behavior in hash.h hash.h:200:27, left shift of 250 by 24 places cannot be represented in type 'int' https://github.com/jemalloc/jemalloc/commit/7fd22f7b2ea5ce2540563ece8e2d30a5316ac857
2020-01-06set that NetBSD overcommits (from maya)christos
2019-11-01Workaround for random crash of userland binaries, as reported inrin
PR port-alpha/54307. If rtree.c and tcache.c are compiled with -O0, userland just works without problems as far as I can see. Alternately, you can specify -DJEMALLOC_DEBUG to avoid random crash. Smells like compiler bug, or wrong coding which relies on some undefined behavior. Anyway, we need to pull this up into netbsd-9 asap.
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-08-09PR/54307: Rin Okuyama: Lots of jemalloc assertions in latest -currentchristos
2019-07-27Ensure that percpu_arena_update is really dead if it shouldn't work andjoerg
really alive otherwise.
2019-07-23Disable JEMALLOC_DEBUG, it served us well, but now we want performancemartin
back. Discussed with christos.
2019-05-14Hack around clang powerpc tls_model("initial-exec") pic issue; this is gross.christos
2019-05-05PR/54133: Sevan Janiyan: Binaries fail to executechristos
Prefer MAX_PAGE_SHIFT over PAGE_SHIFT
2019-04-26Enforce alignment also if the compiled in PAGE_SIZE is bigger thanchristos
getpagesize()
2019-04-26Back to using MAX_PAGE_SHIFTchristos
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-04-18no tls for sun2 either.christos
2019-04-15Ignore atomic alignment error for clangchristos
2019-04-14Declare the tls model in external declarations. Pointed out by joerg.christos
2019-04-09Use MIN_PAGE_SHIFT if PAGE_SHIFT is not available instead of MAX_PAGE_SHIFT.christos
2019-04-02Vax ain't having any of that newfangled TLS crap (yet).christos
2019-03-29Move all jemalloc symbols to the private namespace. We can't use visibilitychristos
because sun2 links statically.
2019-03-29there is no elifdefchristos
2019-03-29Change strategy: instead of always defining PAGE_SHIFT in vmparam.h, failchristos
back to using MAX_PAGE_SHIFT.
2019-03-28Add 2K page size tables (sun2)christos
2019-03-27alignment for sh3christos
2019-03-27add tables for 16K page sizeschristos
2019-03-27vaxinate!christos
2019-03-27Handle vax optimizerchristos
2019-03-27LG_QUANTUM is 4 for both sparc and sparc64martin
2019-03-21Add size variants for architectures with PGSHIFT = 13martin
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