Commit graph

3080 commits

Author SHA1 Message Date
Daan
639b73ecf9 refactor 2025-06-18 01:37:16 -07:00
Daan
98140490a9 remove unneeded forward declarations 2025-06-18 01:34:56 -07:00
Daan
c1f17cd253 include std headers in bits for IDE 2025-06-17 20:10:32 -07:00
Daan
1b5ee4e2d0 skip purge after arenas destroy 2025-06-17 19:59:12 -07:00
Daan
aaf8da9aba potential fix for use-after-free of the tld on unsafe arenas destroy 2025-06-17 19:49:09 -07:00
Daan
99976d6c2b fix merge error where commit bits in the pagemap were not set 2025-06-17 19:34:32 -07:00
Daan
2ce6568af6 fix compile error for mi_decl_nodiscard 2025-06-17 18:44:17 -07:00
Daan
d8321f6d66 check commit success for pagemap extension so NULL can be returned instead of faulting (issue #1098) 2025-06-17 18:34:41 -07:00
Daan
878627072b add test for issue #1024 2025-06-17 06:03:05 -07:00
Daan
dc84ea7866 bump version to v3.1.6 for further development 2025-06-13 22:11:38 -07:00
Daan
dfa50c37d9 nicefy mi_popcount 2025-06-13 21:45:06 -07:00
Daan
b10c0f87ee fix state of commit bits on commit failure 2025-06-13 21:31:30 -07:00
Daan
3243a2b105 add mi_bitmap_popcountN 2025-06-13 21:29:21 -07:00
Daan
e2f16d3865 Merge branch 'dev' into dev3 2025-06-13 21:29:14 -07:00
Daan Leijen
189b0ac416 count commit stats only if the commit succeeded 2025-06-13 09:29:18 -07:00
Daan
94e85f3dfb Merge branch 'dev' into dev3 2025-06-10 11:29:15 -07:00
daanx
c9541ac6e8 use sysinfo call on linux to determine physical memory (as _SC_PHYSPAGES may cause allocation) (issue #1100) 2025-06-10 11:28:03 -07:00
Daan
53f88dce76 add physical memory detection on macOS/freeBSD 2025-06-10 11:00:20 -07:00
Daan
19a9f0a50b bump version to v3.1.5 for further development 2025-06-09 20:07:11 -07:00
Daan
cfff6bfd47 bump version to v1.9.5 for further development 2025-06-09 20:01:28 -07:00
Daan
b0958d81fa merge from dev 2025-06-09 19:21:26 -07:00
Daan
6d3c860769 update readme for upcoming release 2025-06-09 19:19:18 -07:00
Daan
82b67862c8 update vcpkg config to 1.9.4 2025-06-09 19:18:51 -07:00
Daan
316a434d8e fix armv7 detection 2025-06-09 19:05:30 -07:00
Daan
8253ac1bd9 Merge branch 'dev' into dev3 2025-06-08 16:59:30 -07:00
Daan
3b2daccf9d fix build for TSAN tests 2025-06-08 16:50:29 -07:00
daanx
99ed3ea754 enable building for xbox, based on pr #1084 by @maxbachmann 2025-06-08 16:41:04 -07:00
Daan
fda68e5fc4 Merge branch 'dev' of https://github.com/microsoft/mimalloc into dev 2025-06-08 16:04:29 -07:00
Daan
a981d40787 fix link error without static library build (by @fd00, PR #1082) 2025-06-08 16:02:44 -07:00
Daan
6c3519d7cc
Merge pull request #1057 from Noxybot/fix_recursion_on_android
fix recursion in TLS init on Android
2025-06-08 15:56:53 -07:00
Daan
82cd900834 make macOS interposes compile for older macOS versions (by @noxybot, PR #1028) 2025-06-08 15:54:01 -07:00
Daan Leijen
45062f4357 merge from dev 2025-06-07 10:14:55 -07:00
Daan Leijen
c1249a4b15 do not automatically call mi_process_done if mi_option_destroy_on_exit > 1 2025-06-07 10:12:53 -07:00
Daan Leijen
e7cbbbfb14 add mi_process_done to the api 2025-06-07 09:51:35 -07:00
Daan
6cfc8ad9d0 improve handling of commit failure in arena allocation 2025-06-06 21:29:33 -07:00
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