jemalloc/src
Slobodan Predolac a0f2bdf91d Fix missing negation in large_ralloc_no_move usize_min fallback
The second expansion attempt in large_ralloc_no_move omitted the !
before large_ralloc_no_move_expand(), inverting the return value.
On expansion failure, the function falsely reported success, making
callers believe the allocation was expanded in-place when it was not.
On expansion success, the function falsely reported failure, causing
callers to unnecessarily allocate, copy, and free.

Add unit test that verifies the return value matches actual size change.
2026-04-01 23:15:19 -04:00
..
arena.c Move bin inline functions from arena_inlines_b.h to bin_inlines.h 2026-03-10 18:14:33 -07:00
background_thread.c Fix background thread initialization race 2026-03-10 18:14:33 -07:00
base.c Refactor init_system_thp_mode and print it in malloc stats. 2026-03-10 18:14:33 -07:00
bin.c Move bin functions from arena.c to bin.c 2026-03-10 18:14:33 -07:00
bin_info.c Revert PR #2608: Manually revert commits 70c94d..f9c0b5 2026-03-10 18:14:33 -07:00
bitmap.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
buf_writer.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
cache_bin.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
ckh.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
conf.c Separate out the configuration code from initialization 2026-03-10 18:14:33 -07:00
counter.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
ctl.c Fix off-by-one in arenas_bin_i_index and arenas_lextent_i_index bounds checks 2026-04-01 23:15:19 -04:00
decay.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
div.c Add the div module, which allows fast division by dynamic values. 2017-12-21 14:25:43 -08:00
ecache.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
edata.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
edata_cache.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
ehooks.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
emap.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
eset.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
exp_grow.c Fix the VM over-reservation on aarch64 w/ larger pages. 2024-09-04 15:43:59 -07:00
extent.c Remove dead code: extent_commit_wrapper, large_salloc, tcache_gc_dalloc event waits 2026-04-01 17:48:19 -04:00
extent_dss.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
extent_mmap.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
fxp.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
hook.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
hpa.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2026-03-10 18:14:33 -07:00
hpa_central.c [EASY] Extract hpa_central component from hpa source file 2026-03-10 18:14:33 -07:00
hpa_hooks.c [HPA] Add ability to start page as huge and more flexibility for purging 2026-03-10 18:14:33 -07:00
hpa_utils.c [EASY] Encapsulate better, do not pass hpa_shard when hooks are enough, move shard independent actions to hpa_utils 2026-03-10 18:14:33 -07:00
hpdata.c [HPA] Add ability to start page as huge and more flexibility for purging 2026-03-10 18:14:33 -07:00
inspect.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
jemalloc.c Separate out the configuration code from initialization 2026-03-10 18:14:33 -07:00
jemalloc_cpp.cpp Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
large.c Fix missing negation in large_ralloc_no_move usize_min fallback 2026-04-01 23:15:19 -04:00
log.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
malloc_io.c Define malloc_{write,read}_fd as non-inline global functions 2026-03-10 18:14:33 -07:00
mutex.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
nstime.c [HPA] Add ability to start page as huge and more flexibility for purging 2026-03-10 18:14:33 -07:00
pa.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2026-03-10 18:14:33 -07:00
pa_extra.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2026-03-10 18:14:33 -07:00
pac.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2026-03-10 18:14:33 -07:00
pages.c Guard os_page_id against a NULL address 2026-03-10 18:14:33 -07:00
peak_event.c Remove experimental.thread.activity_callback 2026-04-01 16:23:41 -07:00
prof.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
prof_data.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
prof_log.c Fix typo in prof_log_rep_check: use != instead of || for alloc_count 2026-03-26 10:42:29 -07:00
prof_recent.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
prof_stack_range.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
prof_stats.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
prof_sys.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
psset.c Fix psset_pick_purge when last candidate with index 0 dirtiness is ineligible 2026-03-26 10:39:37 -07:00
rtree.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
safety_check.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
san.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
san_bump.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
sc.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
sec.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2026-03-10 18:14:33 -07:00
stats.c Fix duplicate "nactive_huge" JSON key in HPA shard stats output 2026-04-01 23:15:19 -04:00
sz.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
tcache.c Remove dead code: extent_commit_wrapper, large_salloc, tcache_gc_dalloc event waits 2026-04-01 17:48:19 -04:00
test_hooks.c Enabled -Wstrict-prototypes and fixed warnings. 2023-07-06 12:00:02 -07:00
thread_event.c Remove prof_threshold built-in event. It is trivial to implement it as user event if needed 2026-03-10 18:14:33 -07:00
thread_event_registry.c Remove prof_threshold built-in event. It is trivial to implement it as user event if needed 2026-03-10 18:14:33 -07:00
ticker.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
ticker.py Add ticker_geom_t. 2021-02-04 14:10:43 -08:00
tsd.c Always use pthread_equal to compare thread IDs 2026-03-10 18:14:33 -07:00
util.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
witness.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
zone.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00