1
0
Fork 0
mirror of https://github.com/jemalloc/jemalloc.git synced 2026-12-03 15:14:27 +00:00
No description
  • C 88.9%
  • Perl 4.5%
  • M4 3%
  • Python 1.2%
  • Shell 0.9%
  • Other 1.5%
Find a file
Aikhan Jumashukurov 6535cbb429 Zero nonfull_slabs when resetting a bin
arena_bin_reset() drains slabs_nonfull with edata_heap_remove_first()
rather than the bin_slabs_nonfull_*() helpers, so the nonfull_slabs
counter keeps its old value while curregs and curslabs are zeroed.
Destroying an arena that had a slab in slabs_nonfull then trips the
debug assertion in ctl_arena_stats_sdmerge() that a destroyed arena
has no nonfull slabs, and non-debug builds report a stale
stats.arenas.<i>.bins.<j>.nonfull_slabs after arena.<i>.reset.

Zero nonfull_slabs together with the other current counters.  This is
the fix the reporter proposed in the issue.  Add a test that leaves a
slab in slabs_nonfull, then resets and destroys the arena.

Fixes #1811.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 16:34:34 -05:00
.github/workflows Bound Ubuntu CI dependency setup and use the HTTPS mirror 2026-11-17 17:42:45 -05:00
bin Escape every single quote in jeprof ShellEscape 2026-11-12 10:57:20 -05:00
build-aux Update config.guess and config.sub to the latest versions 2026-03-10 18:14:33 -07:00
doc Include HPA SEC pages in stats.resident and pdirty (#3057) 2026-11-10 19:24:46 -06:00
doc_internal update PROFILING_INTERNALS.md 2022-10-03 10:48:29 -07:00
include Record aggregate allocations and bytes escaped from profiling 2026-12-02 12:02:29 -08:00
m4 Support C++17 over-aligned allocation 2019-11-22 10:14:16 -08:00
msvc Size rerouting: Add HPA shard sets 2026-11-30 10:56:34 -08:00
scripts Bound Ubuntu CI dependency setup and use the HTTPS mirror 2026-11-17 17:42:45 -05:00
src Zero nonfull_slabs when resetting a bin 2026-12-02 16:34:34 -05:00
test Zero nonfull_slabs when resetting a bin 2026-12-02 16:34:34 -05:00
tools/prof_usdt Add USDT profiling bpftrace scripts 2026-10-01 11:58:42 -04:00
.appveyor.yml Update msys to vs2022 for appveyor 2026-04-19 22:49:25 -07:00
.autom4te.cfg Disable autom4te cache. 2014-09-02 17:49:29 -07:00
.clang-format Modify .clang-format to have declarations aligned 2025-05-28 19:22:21 -07:00
.git-blame-ignore-revs Ignore the clang-format changes in the git blame. 2026-03-10 18:14:33 -07:00
.gitattributes fix git handling of newlines on windows 2014-05-07 18:48:39 -04:00
.gitignore OS layer scaffolding (dispatcher) 2026-07-30 09:43:34 -07:00
.travis.yml change tests to set --enable-prof-libunwind instead of --enable-prof-frameptr 2026-07-23 15:49:32 -04:00
autogen.sh build: Make autogen.sh accept quoted extra options 2024-01-03 14:20:34 -08:00
ChangeLog ChangeLog for 5.4.0 2026-09-16 15:01:03 -07:00
config.stamp.in Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
configure.ac Use AC_FUNC_STRERROR_R for the strerror_r return type check (#3094) 2026-12-01 20:49:37 -06:00
COPYING Update copyright dates. 2019-01-25 13:25:20 -08:00
INSTALL.md Document the dynamic page size config args in INSTALL.md. 2026-10-01 11:33:40 -04:00
jemalloc.pc.in Expose jemalloc_prefix via pkg-config 2023-09-05 14:30:21 -07:00
Makefile.in Size rerouting: report HPA shard set stats 2026-11-30 10:56:34 -08:00
README switch to https 2023-03-09 11:44:02 -08:00
run_tests.sh Introduce scripts to run all possible tests 2017-01-30 17:51:57 -08:00
TUNING.md switch to https 2023-03-09 11:44:02 -08:00

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, and since then it has found its
way into numerous applications that rely on its predictable behavior.  In 2010
jemalloc development efforts broadened to include developer support features
such as heap profiling and extensive monitoring/tuning hooks.  Modern jemalloc
releases continue to be integrated back into FreeBSD, and therefore versatility
remains critical.  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.

The COPYING file contains copyright and licensing information.

The INSTALL file contains information on how to configure, build, and install
jemalloc.

The ChangeLog file contains a brief summary of changes for each release.

URL: https://jemalloc.net/