Commit graph

3044 commits

Author SHA1 Message Date
Daan
d8b7456a1f Merge branch 'dev' into dev3 2025-06-06 21:23:10 -07:00
Daan
d7d6c3b5c3 fix assertion 2025-06-06 21:22:44 -07:00
Daan
e19f08aefe Merge branch 'dev' into dev3 2025-06-06 21:10:09 -07:00
Daan
57830a4b25 fix assertion in mi_os_ensure_zero 2025-06-06 21:09:32 -07:00
Daan
eeab42be46 use mi_os_zalloc for submaps 2025-06-06 21:04:24 -07:00
Daan
2f0540c4f9 add _mi_os_zalloc 2025-06-06 20:50:50 -07:00
Daan
444902a4c8 Merge branch 'dev' into dev3 2025-06-06 20:15:27 -07:00
Daan
d7431402c5 fall back to MADV_DONTNEED if MADV_FREE_REUSABLE fails on macOS; disable use of MADV_FREE_REUSE on a reset (issue #1097) 2025-06-06 20:15:16 -07:00
Daan
2696627aaf add MI_UNUSED for unix _mi_prim_reuse 2025-06-06 20:07:37 -07:00
Daan
a067bd42ae merge from dev (support for mi_prim_reuse, #1097) 2025-06-06 18:05:13 -07:00
Daan
d389819cc9 add initial support for _mi_prim_reuse and MADV_FREE_REUSABLE on macOS (issue #1097) 2025-06-06 17:59:46 -07:00
Daan
aaedb58c09 Merge branch 'dev' into dev3 2025-06-06 15:53:59 -07:00
Daan
2d34956bed use main instead of master in readme 2025-06-06 15:53:28 -07:00
Daan
317b22cdb1 check return value of mi_arena_commit, potential fix for #1098 2025-06-06 15:51:34 -07:00
Daan
c8c325c8cd fix merge error 2025-06-06 15:46:31 -07:00
Daan
5115ddd6e6 fix windows 32-bit compilation 2025-06-06 15:29:59 -07:00
Daan
7512b0ef74 merge from dev 2025-06-06 15:22:16 -07:00
Daan
93a003e2f1 Merge remote-tracking branch 'refs/remotes/origin/dev' into dev 2025-06-06 15:15:47 -07:00
Daan
6c3d75a355 fix base address if commit fails on aligned overallocation 2025-06-06 15:13:43 -07:00
Daan
21425bc334 check all os_commit calls and return NULL on failure 2025-06-06 15:13:43 -07:00
Daan
30a17bf1b7 fix missing csize assignment in _mi_os_free_ex 2025-06-06 15:13:43 -07:00
daanx
08b64e71a7 use subproc_main for final statistics output to avoid dereferencing the heap 2025-06-06 14:38:20 -07:00
daanx
7c7ecf096f ensure use of subproc_main during unsafe destroy to avoid derefercing the heap 2025-06-06 11:49:44 -07:00
Daan
a238d2bbbd merge remote with os_commit tests 2025-06-03 15:30:35 -07:00
Daan
488304053e merge from dev; check all os_commit calls 2025-06-03 15:26:41 -07:00
Daan
a0072ba7c3 fix base address if commit fails on aligned overallocation 2025-06-03 15:07:15 -07:00
Daan
60f7e6a6a8 check all os_commit calls and return NULL on failure 2025-06-03 15:03:47 -07:00
Daan
1c51484799 fix missing csize assignment in _mi_os_free_ex 2025-06-03 13:59:14 -07:00
Daan
bfa8982d4b
Merge pull request #1094 from daanx/issue/dev3/1087
fix page map resolving for low addresses (issue #1087)
2025-05-30 18:40:30 -07:00
daanx
e19c022238 define mi_decl_align separate from mi_decl_cache_align 2025-05-30 09:36:38 -07:00
daanx
715acc0329 mark assert_fail as cold and noreturn; move assert to internal.h (see issue #1091, and python/cpython#134586) 2025-05-30 09:29:35 -07:00
daanx
349dee040a fix page map resolving for low addresses (issue #1087) 2025-05-30 09:02:21 -07:00
daanx
550b628358 merge from dev 2025-05-28 08:38:54 -07:00
daanx
3e32b4c385 fix OS allocation size tracking in the memid 2025-05-28 08:37:34 -07:00
Daan
b29c92825b Merge branch 'dev' into dev3 2025-05-21 19:21:25 -07:00
Daan
44e370bdaa fix format specifier in stat output 2025-05-21 19:20:31 -07:00
daanx
d51e33b18e add _mi_stats_init to initialize the process start time 2025-05-21 19:11:47 -07:00
daanx
4bf6ae693a get Windows version dynamically 2025-05-21 17:58:24 -07:00
Daan
6cb4861f3e fix format specifier for numa nodes 2025-05-21 17:36:31 -07:00
daanx
befe57f3e7 don't reset stats at process start so page_map commit is included 2025-05-21 16:50:30 -07:00
daanx
948c568665 merge 2025-05-21 16:33:44 -07:00
Daan
fc1a29180b fix api test for 32-bits 2025-05-21 16:33:16 -07:00
daanx
8a66ae818a always use non-flat map in secure mode and validate pointers passed to free 2025-05-21 16:32:06 -07:00
Daan
09c2b7fdcf Merge remote-tracking branch 'T9/dev3' into dev3 2025-05-21 16:08:44 -07:00
daanx
4161152d17 fix valid pointer check for low addresses (#issue 1087) 2025-05-21 16:04:13 -07:00
daanx
c2621f8fbe Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-05-21 15:56:07 -07:00
Daan
932cea0058 fix output for api test 2025-05-21 15:33:25 -07:00
Daan
0c62893367 fix merge conflict 2025-05-21 15:28:52 -07:00
Daan
ed474ce525 merge 3b567b1 to track pages statistics correctly 2025-05-21 15:20:06 -07:00
Daan
6c2cfd7830 ensure page stats are done on the subproc stats in case the tld is NULL 2025-05-21 15:18:53 -07:00