Commit graph

1855 commits

Author SHA1 Message Date
daanx
ad0764272a potential fix for low address allocations, issue #1087 2025-05-13 14:41:40 -07:00
daanx
a92f86dc73 add page_cross_thread_max_reclaim option 2025-05-13 14:12:22 -07:00
daanx
3ef6784455 destroy the page map as well if MIMALLOC_DESTROY_ON_EXIT is set; see issue #1041 2025-05-12 22:05:15 -07:00
Daan Leijen
36e1cbfdbc change default page_reclaim_max and change reclamation test to potentially address perf regresion in mimalloc v3 with respect to v2 -- see also https://github.com/leanprover/lean4/pull/7786 2025-05-12 18:02:42 -07:00
Daan
1aa832873b Merge branch 'dev' into dev3 2025-05-04 22:19:46 -07:00
daanx
303b196d40 fix MI_WIN_USE_FIXED_TLS conditions 2025-05-04 22:09:56 -07:00
daanx
52b75693c4 use TlsAlloc with a dynamic offset for MI_WIN_USE_FIXED_TLS by default (issue #1078) 2025-05-04 22:03:10 -07:00
Daan
ccaa4a1de9 merge from dev 2025-05-04 19:55:35 -07:00
daanx
9c24c428cb add more decl_hidden specifiers on extern variables to improve access on arm64 2025-05-04 19:51:13 -07:00
daanx
f989a1cbb9 add more decl_hidden specifiers on extern variables to improve access on arm64 2025-05-04 09:10:38 -07:00
daanx
90da648b08 merge from dev 2025-05-02 16:28:57 -07:00
daanx
417e8176bd add unix large page size constant and adjust aligment to the large page size for large allocations 2025-05-02 16:27:00 -07:00
daanx
87bbcb6266 fix use of mi_bsr 2025-05-02 16:22:59 -07:00
daanx
f3e92b1edd Use second user TLS slot to avoid using reserved fields in the TEB (issue #1078) 2025-05-02 16:12:20 -07:00
daanx
6bfb1c656c allow size==0 for mi_prim_free (issue #1041) 2025-05-02 08:40:21 -07:00
Daan
61f3ffd2a6 Merge branch 'dev' into dev3 2025-04-13 19:57:28 -07:00
Daan
fae61ed946 fix assertion in mi_free_size (issue #754) 2025-04-13 19:56:49 -07:00
Daan
3bc90fbd71 Merge branch 'dev' into dev3 2025-04-13 19:52:45 -07:00
Daan
a5298dd48f Merge remote-tracking branch 'refs/remotes/origin/dev' into dev 2025-04-13 19:50:59 -07:00
Daan
7543e8989a validate pointer before assertion in mi_free_size (issue #754) 2025-04-13 19:49:47 -07:00
Daan
ccda6b576e Merge branch 'dev' into dev3 2025-04-08 13:57:17 -07:00
Daan
951538d469 fix prctl.h includes for alpine linux/musl (hopefully fixes #1065, #1066, #1067) 2025-04-08 13:56:31 -07:00
daanx
26e4632287 merge from dev 2025-04-02 10:45:18 -07:00
daanx
5a58df6534 fix signed compare warning 2025-04-02 10:40:30 -07:00
daanx
235a0390ee refactor numa_node_count 2025-04-02 10:34:00 -07:00
daanx
34875aef71 fix build error on msvc/clang-cl in C mode (issue #1060) 2025-04-02 10:17:29 -07:00
daanx
32788fa93f Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-03-31 14:46:53 -07:00
Daan
14220b7052 Merge branch 'dev' into dev3 2025-03-31 14:45:17 -07:00
Daan
77b622511a fix alpine compilation with prctl.h (issue #1059) 2025-03-31 14:44:46 -07:00
Daan
57a9c1656f add comment 2025-03-31 11:27:31 -07:00
daanx
78e2684cd0 Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-03-31 11:25:58 -07:00
Daan
71b3e16171 fix invalid pointer detection in release mode (issue #1051 and #1053) 2025-03-31 10:54:12 -07:00
Daan
88810f784d Merge branch 'dev' into dev3 2025-03-30 16:15:34 -07:00
Daan
cbab63f6c9 fix release build warning (unused mi_stat_total_print) 2025-03-30 16:15:27 -07:00
Daan
9228b4814a make mi_options static, rename out_buf for the debug extension 2025-03-28 13:49:14 -07:00
daanx
d3a0bf320f Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-03-26 17:28:27 -07:00
Daan
d5a9342c5e Merge branch 'dev' into dev3 2025-03-21 20:07:46 -07:00
Daan
26b792d93b fix aligned malloc_requested statistic 2025-03-21 20:07:16 -07:00
Daan
a15a999881 add chunk bin output to json stats 2025-03-21 19:57:23 -07:00
Daan
d5dface6fb merge from dev improved statistics 2025-03-21 19:49:02 -07:00
Daan
a077311a5e improve tracking of malloc_requested count 2025-03-21 19:40:44 -07:00
Daan
d48bafe2bb print statistics nicer 2025-03-21 19:21:41 -07:00
Daan
8fd106a17a Merge branch 'dev' into dev3 2025-03-21 16:57:46 -07:00
Daan
6ed451c555 fix linux compile by including linux/prctl.h 2025-03-21 16:48:50 -07:00
Daan
01ee3568c1 name anonymous mmap address ranges for debugging on Linux (based on PR #1032 by @zhuker) 2025-03-21 16:19:54 -07:00
Daan
7eafaa9685 fix visibility warning (issue #1031) 2025-03-19 20:22:02 -07:00
Daan
b2dcab58f7 fix assertion failure (issue #1031) 2025-03-19 20:20:36 -07:00
Daan
fd170c4964 Merge branch 'dev' into dev3 2025-03-19 19:09:07 -07:00
Daan
47bf3a5b1b potential fix for sporadic assertion failure on random returning 0 (issue #1039) 2025-03-19 19:06:21 -07:00
Daan
26fa8be427 improved accounting of committed bytes (issue #1035) 2025-03-19 18:50:53 -07:00