jemalloc/src
Carl Shapiro 74a0595a7e Guard os_page_id against a NULL address
While undocumented, the prctl system call will set errno to ENOMEM
when passed NULL as an address.  Under that condition, an assertion
that check for EINVAL as the only possible errno value will fail.  To
avoid the assertion failure, this change skips the call to os_page_id
when address is NULL.  NULL can only occur after mmap fails in which
case there is no mapping to name.
2026-02-27 12:05:01 -08:00
..
arena.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2025-12-19 12:51:26 -05:00
background_thread.c Fix background thread initialization race 2026-02-21 15:12:42 -08:00
base.c Refactor init_system_thp_mode and print it in malloc stats. 2025-10-13 16:56:12 -07:00
bin.c Revert PR #2608: Manually revert commits 70c94d..f9c0b5 2025-08-22 21:55:24 -07:00
bin_info.c Revert PR #2608: Manually revert commits 70c94d..f9c0b5 2025-08-22 21:55:24 -07:00
bitmap.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
buf_writer.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
cache_bin.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
ckh.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
counter.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
ctl.c Remove prof_threshold built-in event. It is trivial to implement it as user event if needed 2026-02-25 09:06:29 -08:00
decay.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -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. 2025-06-20 14:35:15 -07:00
edata.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
edata_cache.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
ehooks.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
emap.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
eset.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -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 Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
extent_dss.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
extent_mmap.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
fxp.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
hook.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
hpa.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2025-12-19 12:51:26 -05:00
hpa_central.c [EASY] Extract hpa_central component from hpa source file 2025-12-02 13:20:18 -08:00
hpa_hooks.c [HPA] Add ability to start page as huge and more flexibility for purging 2025-10-06 10:59:43 -04:00
hpa_utils.c [EASY] Encapsulate better, do not pass hpa_shard when hooks are enough, move shard independent actions to hpa_utils 2025-12-02 13:20:18 -08:00
hpdata.c [HPA] Add ability to start page as huge and more flexibility for purging 2025-10-06 10:59:43 -04:00
inspect.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
jemalloc.c Remove prof_threshold built-in event. It is trivial to implement it as user event if needed 2026-02-25 09:06:29 -08:00
jemalloc_cpp.cpp Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
large.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
log.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
malloc_io.c Define malloc_{write,read}_fd as non-inline global functions 2025-08-23 11:42:23 -04:00
mutex.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
nstime.c [HPA] Add ability to start page as huge and more flexibility for purging 2025-10-06 10:59:43 -04:00
pa.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2025-12-19 12:51:26 -05:00
pa_extra.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2025-12-19 12:51:26 -05:00
pac.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2025-12-19 12:51:26 -05:00
pages.c Guard os_page_id against a NULL address 2026-02-27 12:05:01 -08:00
peak_event.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
prof.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
prof_data.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
prof_log.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
prof_recent.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
prof_stack_range.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
prof_stats.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
prof_sys.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
psset.c [HPA] Add ability to start page as huge and more flexibility for purging 2025-10-06 10:59:43 -04:00
rtree.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
safety_check.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
san.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
san_bump.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
sc.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
sec.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2025-12-19 12:51:26 -05:00
stats.c [SEC] Make SEC owned by hpa_shard, simplify the code, add stats, lock per bin 2025-12-19 12:51:26 -05:00
sz.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
tcache.c move fill/flush pointer array out of tcache.c 2025-11-02 13:46:00 -08: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-02-25 09:06:29 -08:00
thread_event_registry.c Remove prof_threshold built-in event. It is trivial to implement it as user event if needed 2026-02-25 09:06:29 -08:00
ticker.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -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 2025-08-28 14:45:51 -07:00
util.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
witness.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00
zone.c Reformat the codebase with the clang-format 18. 2025-06-20 14:35:15 -07:00