Commit graph

2701 commits

Author SHA1 Message Date
Daan
aae2e0b2f6 merge from dev 2025-02-10 20:15:42 -08:00
daanx
08ebe070a4 add mi_heap_set_in_threadpool 2025-02-10 20:11:52 -08:00
daanx
1d78531a64 update minject to take target arch into account (issue #997) 2025-02-10 20:02:02 -08:00
Daan
02311cb126 Merge branch 'dev' into dev3 2025-02-09 19:24:23 -08:00
daanx
3e7875066b add dynamic override test on windows 2025-02-09 19:22:26 -08:00
Daan
a1cb38b70e fix link error in debug mode in test 2025-02-09 19:10:33 -08:00
Daan
8a036ee2b0 Merge branch 'dev' into dev3 2025-02-09 18:55:24 -08:00
Daan
84aadcb087 avoid link error with asan/c++ 2025-02-09 18:55:14 -08:00
Daan
11f4da7ea5 add simd test on windows 2025-02-09 18:46:55 -08:00
Daan
54cf68b678 Merge branch 'dev' into dev3 2025-02-09 18:44:39 -08:00
Daan
62833be9eb disable dynamic override test on ubsan/tsan/asan 2025-02-09 18:44:17 -08:00
Daan
f3c86bd976 add simd test in azure pipeline 2025-02-09 18:38:15 -08:00
Daan
6bdf5a7a42 merge from dev 2025-02-09 18:35:35 -08:00
Daan
7dd598e0e8 add dynamic override test 2025-02-09 18:32:16 -08:00
Daan Leijen
d8c119cc4f add mi_decl_maybe_unused; fix compilation with OPT_SIMD (issue #1009) 2025-02-09 08:56:22 -08:00
Daan
fe5258a179 change process initialization order (potential fix for issue #1007) 2025-02-08 23:33:16 -08:00
Daan
06ade47b05 fix is_huge definition 2025-02-08 23:26:45 -08:00
daanx
9dd753d2c0 add comment 2025-02-08 13:12:19 -08:00
daanx
4d1b0f0dbb Merge branch 'dev' into dev3 2025-02-08 12:52:15 -08:00
Daan Leijen
5f9b42685e remove declspec(dllexport) from DllMain on Windows (issue #1008) 2025-02-08 12:51:06 -08:00
Daan Leijen
c7f7c23dc1 make C compatible 2025-02-08 12:43:00 -08:00
daanx
1500d73e9a Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-02-08 12:20:53 -08:00
Daan
53917d45ab merge from dev 2025-02-08 12:20:24 -08:00
Daan
069279e3e7 improve cmake for multi-arch binaries on apple 2025-02-08 12:18:27 -08:00
Daan
4e366c4320 support mixed architecture binaries on apple 2025-02-08 12:16:19 -08:00
Daan
0e9159e0bf add comment 2025-02-08 12:06:39 -08:00
daanx
6d350ab850 set the option commit_on_demand back to 2 as we only do this for medium/large pages 2025-02-08 11:51:18 -08:00
Daan
cb2719cdb8
Merge pull request #999 from jbatez/dev
support MI_OPT_ARCH when targeting multiple CMAKE_OSX_ARCHITECTURES
2025-02-08 11:46:07 -08:00
Daan
152804bb9f
Merge pull request #1006 from sergio-nsk/sergio-nsk/uwp/1
prim: fix dev3 UWP build (#1005)
2025-02-08 11:42:21 -08:00
daanx
2048fa2d17 fix comments 2025-02-08 09:53:00 -08:00
daanx
2017181a69 improve performance of clearNX 2025-02-08 09:36:09 -08:00
daanx
bc7fe059a6 improve performance of mi_free_collect_mt by specializing mi_page_unown 2025-02-08 09:35:52 -08:00
daanx
9b7914fd3f fix bug in mi_page_free_collect_partly where the tail of the free list was kept 2025-02-08 09:35:21 -08:00
daanx
ca25fb3d17 avoid reload on clearing mask 2025-02-07 17:38:53 -08:00
Sergey Markelov
9053cf0cd2 prim: fix dev3 UWP build (#1005) 2025-02-07 12:35:59 -07:00
daanx
7931678899 further optimize mi_bchunk_try_find_and_clearNX 2025-02-06 22:59:14 -08:00
Daan
64aaf9d88f fix performance bug in mi_bchunk_try_find _and_clearNX 2025-02-06 17:08:06 -08:00
daanx
4c562f392a allow page reclaim on free to the originating heap also within a threadpool 2025-02-06 11:53:22 -08:00
Daan
3d767ebef6 use regular free in zone_free on macos 2025-02-05 21:20:44 -08:00
Daan
515047b676 improve free on macos 2025-02-05 20:55:21 -08:00
daanx
1657bfb453 clarify control flow and comments in page reclaim_on_free 2025-02-05 16:01:45 -08:00
daanx
5aa679cdee make page_reclaim_on_free 0 by default; but allow reclaim_on_free if the page was originally in this heap (just as in v2 with the full queue) 2025-02-05 15:41:37 -08:00
daanx
5fbba3f20c fix sign of comparison 2025-02-05 14:27:36 -08:00
daanx
27895ce35d fix guard page size calculation in secure mode 2025-02-05 14:25:36 -08:00
daanx
1e0801dcea call page_free_collect less often from a page search 2025-02-05 14:04:11 -08:00
Daan Leijen
8fc8da5d81 use thread local stats for abandoned statistics to reduce contention 2025-02-04 17:54:49 -08:00
Daan Leijen
b0c8d86c41 refactor mi_free_try_collect_mt 2025-02-04 15:03:27 -08:00
Daan Leijen
db7930f961 avoid atomics in mi_free_try_collect_mt 2025-02-04 14:58:08 -08:00
Daan Leijen
59eeeadc34 only allow page_reclaim_on_free for small block pages 2025-02-04 12:26:21 -08:00
Jo Bates
eb0081382b support MI_OPT_ARCH when targeting multiple CMAKE_OSX_ARCHITECTURES 2025-02-01 17:04:46 -08:00