mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
Rejoice (or grieve) as jemalloc has risen from the ashes!
Its development revived sometime around Q1/Q2 of 2026 and, apparently,
it was so fruitful that two releases have been delivered since then:
5.3.1 and 5.4.0. The latter does not carry the fix for bug 967868, so I
decided to skip it and go right ahead to 5.4.0.
ABI considerations below. Three patches were dropped, one was retained, one updated:
- PR 2338 was merged upstream and is present in 5.4.0 and the
corresponding backport was dropped.
- PR 2312 patch (HPA support) was dropped because it would not apply
on 5.4.0 and we no longer support IA64 (and the issue in original
bug report was prsent on IA64). See upstream issue 2305.
- The fix in 'dont-call-libstcxx-internals' was merged upstream and is
present in 5.4.0 so the patch is dropped.
- AArch64 page size fix has not been upstreamed, so it stays.
- Gentoo fixups is renamed 'dont-override-cflags', the patch is
amended with further removal of unconditional adding of -g flags.
Also, instead of patching the build system to not install HTML doc
to unversioned /usr/share/doc/${PN} (should be ${PF}/html), we just
remove the offender in src_install().
Multilib wrapped header is removed (since its use is discouraged) and
per-ABI headers now live in corresponding libdirs. jemalloc uses
autoconf so we just pass --includedir.
IUSE="+stats" is default enabled now because it has been default
enabled upstream since 2012.
ABI considerations
==================
Quick glance at abidiff (5.3.0-r3 vs 5.4.0) on amd64, on both
ABI_X86="64 32", shows the addition of three new functions and (get
ready!) changing of types of arguments of function pointers used for
tests:
```
Functions changes summary: 0 Removed, 0 Changed, 3 Added functions
Variables changes summary: 0 Removed, 2 Changed, 2 Added variables
3 Added functions:
[A] 'function void free_aligned_sized(void*, size_t, size_t)'
{free_aligned_sized}
[A] 'function void free_sized(void*, size_t)' {free_sized}
[A] 'function void* pvalloc(size_t)' {pvalloc}
2 variables with incompatible sub-type changes:
[C] 'void (* je_test_hooks_arena_new_hook)(...)' was changed to
'void (* je_test_hooks_arena_new_hook)(void)' at test_hooks.c:9:1:
type of variable changed:
in pointed to type 'function type void (...)':
parameter 1 of type '...' was removed
[C] 'void (* je_test_hooks_libc_hook)(...)' was changed to
'void (* je_test_hooks_libc_hook)(void)' at test_hooks.c:12:1:
type of variable changed:
in pointed to type 'function type void (...)':
parameter 1 of type '...' was removed
```
The reason why these test function pointers are even exported is:
The hooks are a little bit screwy -- they're not genuinely exported
in the sense that we want them available to end-users, but we do
want them visible from outside the generated library, so that we can
use them in test code.
-- src/test-hooks.c
So, nothing serious.
See-also: https://github.com/jemalloc/jemalloc/issues/2305
Bug: https://bugs.gentoo.org/967868
Bug: https://bugs.gentoo.org/969223
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/2060
Merges: https://codeberg.org/gentoo/gentoo/pulls/2060
Signed-off-by: Sam James <sam@gentoo.org>
3 lines
616 B
Plaintext
3 lines
616 B
Plaintext
DIST jemalloc-5.3.0.tar.bz2 736023 BLAKE2B 9ff51616c3fb086d7cc021c59b83e5f0304d886993f4b5194a6956ffaf742cc509d08a2cf81ead6966c39a44f35621b57550f4a5c726c4508fd2c86c7c056ab0 SHA512 22907bb052096e2caffb6e4e23548aecc5cc9283dce476896a2b1127eee64170e3562fa2e7db9571298814a7a2c7df6e8d1fbe152bd3f3b0c1abec22a2de34b1
|
|
DIST jemalloc-5.4.0.tar.bz2 913812 BLAKE2B dd7b7e71762adc4fb8054218c89ad22c9290ec0dc132ee948707ddc16682a3f0a4ee7772f3e01c5d7fe95467e1deced22628ea7e7a743fc7ed3021c1c54d74f4 SHA512 a6771bdc3f066fc458d4723cee3018b445b966a96013074b6aa5ee685e9991ca8a20473ee069c9f4b5912b1ed74a705b059f5c19b4e57c3035d428f055b4d7fd
|