Commit Graph

15 Commits

Author SHA1 Message Date
Khem Raj 362452f3e2 jemalloc: Update to tip of dev branch
This fixes bunch of ptest failures
Failed ptests:
{'jemalloc': ['test_alignment_errors', 'test_oom_errors']}

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-14 08:38:41 -07:00
Petr Chernikov c17f9f2fac Fix empty 0.0.0-0-g0 jemalloc version by adding --with-version
Empty "0.0.0-0-g0" jemalloc version may affect build and usage
of some applications. For example, it affects folly build and
usage and leads segmentation fault in some cases.

Signed-off-by: Petr Chernikov <p.chernikov@yadro.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-26 17:32:45 -07:00
Khem Raj 331fd95146 jemalloc: Unbolt clang workaroud
This works well with clang 15+

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-15 14:21:17 -07:00
Wentao Zhang b3274b4e90 jemalloc: include the missing shell scripts and source the corresponds shell scripts for some test cases.
The test cases in jemalloc require the appropriate value to be exported
to MALLOC_CONF, which is stored in shell scripts.
The privious script just ran the test cases without exporting value, causing
the tests to fail.
Include the missing shell scripts, and source them before running the test
cases now.

Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-04 13:39:46 -07:00
wangmy 3f2acf6d7e jemalloc: upgrade 5.2.1 -> 5.3.0
0001-Makefile.in-make-sure-doc-generated-before-install.patch
removed since it's included in 5.3.0

Changelog:
https://github.com/jemalloc/jemalloc/releases/tag/5.3.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-09 08:59:46 -07:00
Khem Raj d49282245c jemalloc: Fix build with glibc 2.35+clang
Compiler crashes when using glibc 2.35, it should be fixed in clang but
until then workaround it here.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-18 09:01:51 -08:00
Joshua Watt 195c723b87 jemalloc: Fix license file
The license is contained in the COPYING file, not the README

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-15 19:11:18 -08:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Armin Kuster 68814f4ff5 jemalloc: set precise BSD license
"BSD" is ambiguous, use the precise licenses BSD-3-Clause

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-24 08:12:35 -07:00
Mingli Yu a88aa7fb42 jemalloc: improve reproducibility
Remove build host info from config file to improve reproducibility.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-25 08:17:04 -07:00
Mingli Yu 71c5cc44c7 jemalloc: improve the ptest output
Previouly we only show the output of each text program, actually
each test program includes serveral test cases. Improve the ptest
script to show the output of each test case.

Before:
 # ./run-ptest
 [snip]
 PASS: tests/integration/MALLOCX_ARENA
 PASS: tests/integration/aligned_alloc
 [snip]

After:
 # ./run-ptest
 [snip]
 PASS: test_MALLOCX_ARENA (non-reentrant)
 PASS: test_MALLOCX_ARENA (libc-reentrant)
 PASS: test_MALLOCX_ARENA (arena_new-reentrant)
 PASS: test_alignment_errors (non-reentrant)
 PASS: test_alignment_errors (libc-reentrant)
 PASS: test_alignment_errors (arena_new-reentrant)
 PASS: test_oom_errors (non-reentrant)
 PASS: test_oom_errors (libc-reentrant)
 PASS: test_oom_errors (arena_new-reentrant)
 PASS: test_alignment_and_size (non-reentrant)
 PASS: test_alignment_and_size (libc-reentrant)
 PASS: test_alignment_and_size (arena_new-reentrant)
 PASS: test_zero_alloc (non-reentrant)
 PASS: test_zero_alloc (libc-reentrant)
 PASS: test_zero_alloc (arena_new-reentrant)
 [snip]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-12 17:56:01 -07:00
Mingli Yu 61638bdba3 jemalloc: add ptest support
Add ptest support.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-11 10:23:54 -07:00
Mingli Yu 369fd1efe9 jemalloc: fix the race during do_install
Fixes:
 | TOPDIR/tmp-glibc/hosttools/install: cannot stat 'doc/jemalloc.3': No such file or directory
 | make: *** [Makefile:513: install_doc_man] Error 1

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-11 10:23:54 -07:00
Khem Raj a1489b3db0 jemalloc: Fix build on musl
Fixes
In file included from include/jemalloc/internal/jemalloc_preamble.h:21:
include/jemalloc/internal/../jemalloc.h:235:28: error: exception specification in declaration does not match previous declaration
    void JEMALLOC_NOTHROW       *je_aligned_alloc(size_t alignment,
                                 ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Mingli Yu <mingli.yu@windriver.com>
2021-08-06 20:38:40 -07:00
Mingli Yu 7badffb478 jemalloc: add new recipe
jemalloc is a general purpose malloc(3) implementation that emphasizes
fragmentation avoidance and scalable concurrency support.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-03 08:53:04 -07:00