./devel/jemalloc, General purpose malloc(3) implementation

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 5.2.1nb3, Package name: jemalloc-5.2.1nb3, Maintainer: gson

jemalloc is a general purpose malloc(3) implementation that emphasizes
fragmentation avoidance and scalable concurrency support.

jemalloc first came into use as the FreeBSD libc allocator in 2005.
In 2010 jemalloc development efforts broadened to include developer
support features such as heap profiling, Valgrind integration, and
extensive monitoring/tuning hooks. Ongoing development efforts trend
toward making jemalloc among the best allocators for a broad range of
demanding applications, and eliminating/mitigating weaknesses that
have practical repercussions for real world applications.


Required to run:
[lang/perl5]

Required to build:
[textproc/docbook-xsl] [textproc/libxslt] [pkgtools/cwrappers]

Master sites:

SHA1: 9e06b5cc57fd185379d007696da153893cf73e30
RMD160: 9a0876956a96e1b2c7c25c15754241670f3d4609
Filesize: 541.288 KB

Version history: (Expand)


CVS history: (Expand)


   2021-05-24 21:56:06 by Thomas Klausner | Files touched by this commit (3575)
Log message:
*: recursive bump for perl 5.34
   2020-08-31 20:13:29 by Thomas Klausner | Files touched by this commit (3631) | Package updated
Log message:
*: bump PKGREVISION for perl-5.32.
   2020-03-22 13:53:10 by Roland Illig | Files touched by this commit (1)
Log message:
devel/jemalloc: remove unknown configure option

The configure program does not contain the word "silent" anymore.
   2019-08-11 15:25:21 by Thomas Klausner | Files touched by this commit (3557) | Package updated
Log message:
Bump PKGREVISIONs for perl 5.30.0
   2019-08-06 09:50:24 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
jemalloc: updated to 5.2.1

5.2.1

This release is primarily about Windows. A critical virtual memory leak is \ 
resolved on all Windows platforms. The regression was present in all releases \ 
since 5.0.0.

Bug fixes:

Fix a severe virtual memory leak on Windows. This regression was first released \ 
in 5.0.0.
Fix size 0 handling in posix_memalign(). This regression was first released in 5.2.0.
Fix the prof_log unit test which may observe unexpected backtraces from compiler \ 
optimizations. The test was first added in 5.2.0.
Fix the declaration of the extent_avail tree. This regression was first released \ 
in 5.1.0.
Fix an incorrect reference in jeprof. This functionality was first released in 3.0.0.
Fix an assertion on the deallocation fast-path. This regression was first \ 
released in 5.2.0.
Fix the TLS_MODEL attribute in headers. This regression was first released in 5.0.0.

Optimizations and refactors:

Implement opt.retain on Windows and enable by default on 64-bit.
Optimize away a branch on the operator delete path.
Add format annotation to the format generator function.
Refactor and improve the size class header generation.
Remove best fit.
Avoid blocking on background thread locks for stats.
   2019-04-24 19:11:00 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
jemalloc: updated to 5.2.0

5.2.0:
This release includes a few notable improvements, which are summarized below: 1) \ 
improved fast-path performance from the optimizations by @djwatson; 2) reduced \ 
virtual memory fragmentation and metadata usage; and 3) bug fixes on setting the \ 
number of background threads. In addition, peak / spike memory usage is improved \ 
with certain allocation patterns. As usual, the release and prior dev versions \ 
have gone through large-scale production testing.

New features:
Implement oversize_threshold, which uses a dedicated arena for allocations \ 
crossing the specified threshold to reduce fragmentation.
Add extents usage information to stats.
Log time information for sampled allocations.
Support 0 size in sdallocx.
Output rate for certain counters in malloc_stats.
Add configure option --enable-readlinkat, which allows the use of readlinkat \ 
over readlink.
Add configure options --{enable,disable}-{static,shared} to allow not building \ 
unwanted libraries.
Add configure option --disable-libdl to enable fully static builds.
Add mallctl interfaces:
opt.oversize_threshold
stats.arenas.<i>.extent_avail
stats.arenas.<i>.extents.<j>.n{dirty,muzzy,retained}
stats.arenas.<i>.extents.<j>.{dirty,muzzy,retained}_bytes

Portability improvements:
Update MSVC builds.
Workaround a compiler optimizer bug on s390x.
Make use of pthread_set_name_np(3) on FreeBSD.
Implement malloc_getcpu() to enable percpu_arena for windows.
Link against -pthread instead of -lpthread.
Make background_thread not dependent on libdl.
Add stringify to fix a linker directive issue on MSVC.
Detect and fall back when 8-bit atomics are unavailable.
Fall back to the default pthread_create(3) if dlsym(3) fails.

Optimizations and refactors:
Refactor the TSD module.
Avoid taking extents_muzzy mutex when muzzy is disabled.
Avoid taking large_mtx for auto arenas on the tcache flush path.
Optimize ixalloc by avoiding a size lookup.
Implement opt.oversize_threshold which uses a dedicated arena for requests \ 
crossing the threshold, also eagerly purges the oversize extents. Default the \ 
threshold to 8 MiB.
Clean compilation with -Wextra.
Refactor the size class module.
Refactor the stats emitter.
Optimize pow2_ceil.
Avoid runtime detection of lazy purging on FreeBSD.
Optimize mmap(2) alignment handling on FreeBSD.
Improve error handling for THP state initialization.
Rework the malloc() fast path.
Rework the free() fast path.
Refactor and optimize the tcache fill / flush paths.
Optimize sync / lwsync on PowerPC.
Bypass extent_dalloc() when retain is enabled.
Optimize the locking on large deallocation.
Reduce the number of pages committed from sanity checking in debug build.
Deprecate OSSpinLock.
Lower the default number of background threads to 4 (when the feature is enabled).
Optimize the trylock spin wait.
Use arena index for arena-matching checks.
Avoid forced decay on thread termination when using background threads.
Disable muzzy decay by default.
Only initialize libgcc unwinder when profiling is enabled.

Bug fixes (all only relevant to jemalloc 5.x):
Fix background thread index issues with max_background_threads.
Fix stats output for opt.lg_extent_max_active_fit.
Fix opt.prof_prefix initialization.
Properly trigger decay on tcache destroy.
Fix tcache.flush.
Detect whether explicit extent zero out is necessary with huge pages or custom \ 
extent hooks, which may change the purge semantics.
Fix a side effect caused by extent_max_active_fit combined with decay-based \ 
purging, where freed extents can accumulate and not be reused for an extended \ 
period of time.
Fix a missing unlock on extent register error handling.

Testing:
Simplify the Travis script output.
Update the test scripts for FreeBSD.
Add unit tests for the producer-consumer pattern.
Add Cirrus-CI config for FreeBSD builds.
Add size-matching sanity checks on tcache flush.

Incompatible changes:
Remove --with-lg-page-sizes.

Documentation:
Attempt to build docs by default, however skip doc building when xsltproc is missing.
   2019-03-22 17:30:03 by Rin Okuyama | Files touched by this commit (2)
Log message:
Fix previous; initialize os_overcommits for NetBSD >= 8.0.
   2019-03-22 16:55:17 by Amitai Schleier | Files touched by this commit (2)
Log message:
Fix "token is not a valid binary operator in a preprocessor
subexpression" on OS X by nesting the "!__NetBSD_Prereq__(8,0,0)"
check in another #if.