Commit graph

3015 commits

Author SHA1 Message Date
Eduard Voronkin
076df2b8bb do not touch uncommitted memory
sometimes, under high memory pressure situation, VirtualAlloc can fail to commit memory. In such cases, we should not touch such memory, but rather return NULL ptr so we try to mi_heap_collect and recover.
2025-06-02 21:38:32 -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
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
Daan
752dc834a9 merge 3301ba0 to fix page_bin and pages statistics 2025-05-21 15:18:29 -07:00
Daan
f2c9967a6e merge from dev 2025-05-21 15:13:54 -07:00
Daan
08c33768a5 fix stats for pages and page_bins 2025-05-21 11:09:34 -07:00
daanx
a7411ae9c5 use proper atomics for the page_map 2025-05-20 21:04:17 -07:00
daanx
20a0b1ffde refine test for allowing page reclaim on free to limit reclaim if the originating heap is part of a threadpool 2025-05-13 20:35:43 -07:00
Daan
bc18e9456e Merge branch 'dev' into dev3 2025-05-13 17:46:10 -07:00
Daan
15c917ef15 fix syntax error 2025-05-13 17:45:10 -07:00
Daan
9864428349 merge from dev 2025-05-13 17:43:48 -07:00
daanx
41cc1bfe51 add guarded TLS test for Windows fixed TLS 2025-05-13 17:38:16 -07:00
Daan
df3e191620 make windows fixed TLS opt-in 2025-05-13 16:38:53 -07:00
Daan
251d40945b Merge branch 'dev' into dev3 2025-05-13 16:22:31 -07:00
Daan
0ae310327f fix debug assertion for windows TLS 2025-05-13 16:22:08 -07:00
Daan
21378d6d8a merge from dev 2025-05-13 16:13:34 -07:00
daanx
72f05e2f07 fix guarded sample rate of 1 (issue #1085) 2025-05-13 15:58:45 -07:00
daanx
a6ecb5c299 fix format specifier (for alpine linux x86, issue #1086) 2025-05-13 15:35:29 -07:00
daanx
341149391f fix include of prctl.h on alpine linux x86 2025-05-13 15:33:29 -07:00
daanx
0184a86eaf add alpine x86 docker file 2025-05-13 15:32:11 -07:00
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
daanx
f788746143 Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-05-07 22:42:24 -07:00
daanx
c84d996e88 fix TLS initialization for MI_WIN_USE_FIXED_TLS with redirection 2025-05-05 10:23:52 -07:00
Daan
1aa832873b Merge branch 'dev' into dev3 2025-05-04 22:19:46 -07:00
Daan
e2d7c24c73 add fixed TLS slot test to pipeline on Windows 2025-05-04 22:17:59 -07:00
daanx
303b196d40 fix MI_WIN_USE_FIXED_TLS conditions 2025-05-04 22:09:56 -07:00
daanx
6bf8a8c4ae Merge branch 'dev' into dev3 2025-05-04 22:03:19 -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
daanx
08d91e2101 Merge branch 'dev' of https://github.com/microsoft/mimalloc into dev 2025-05-04 21:41:41 -07:00