Commit graph

2301 commits

Author SHA1 Message Date
daanx
aed76f2910 wip: allow arena (re)loading 2024-12-11 20:34:23 -08:00
daanx
ccf5e36e6b use frac 8 for reclaim_on_free and reabandon; halve full_page_retain if running in a threadpool 2024-12-11 16:26:39 -08:00
daanx
1c8d15abac fix build error 2024-12-11 14:30:44 -08:00
daanx
ab53a73cbd small updates 2024-12-11 14:29:06 -08:00
daanx
565656919e fix comments in types; fix guarded alignment bug 2024-12-11 13:04:37 -08:00
daanx
64eea823e4 use always abandon on heap delete 2024-12-11 09:24:38 -08:00
daanx
91215a5512 ensure incompatible heaps are not absorbed 2024-12-11 09:20:34 -08:00
daanx
24d3c1bc14 heap meta data always uses mi_meta_zalloc 2024-12-11 09:16:28 -08:00
daanx
6774130c9a Merge ..\mimalloc into dev3 2024-12-10 20:46:12 -08:00
daanx
7bb4767607 add asan/ubsan/tsan and valgrind to default debug build 2024-12-10 20:45:59 -08:00
daanx
64c4181ffa better block alignment 2024-12-10 20:32:48 -08:00
daanx
c478ddaab4 fix MI_GUARDED build 2024-12-10 19:44:54 -08:00
daanx
2a1c346281 Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2024-12-10 15:12:13 -08:00
Daan
13be5d6740 use non-null tld in heap_init 2024-12-10 15:11:46 -08:00
daanx
7cd8f31f30 improve popcount 2024-12-10 14:50:55 -08:00
Daan
f37aff6ee2 fix for macOS 14 and earlier 2024-12-09 22:27:40 -08:00
Daan
6798375f47 temporarily add macOS 13 and 12 for testing 2024-12-09 21:26:23 -08:00
Daan
5e434a6e66 merge from dev 2024-12-09 21:24:30 -08:00
Daan
9886379349 fix macos 15 OS name 2024-12-09 21:22:30 -08:00
Daan
2556a2022d fix missing void 2024-12-09 20:50:00 -08:00
daanx
ed31847112 fix generic ctz/clz 2024-12-09 20:45:22 -08:00
daanx
c5a2d11193 add extra checks for valid pointers in the pagemap, add max_vabits and debug_commit_full_pagemap options 2024-12-09 20:40:26 -08:00
daanx
3a92c35270 improve generic ctz/clz 2024-12-09 20:25:22 -08:00
daanx
e44815ed6f add bsf/bsr for compilation with older compilers (clang 7) 2024-12-09 20:06:48 -08:00
daanx
56a1bd7f9e fix 32 bit multiply in generic ctz/clz 2024-12-09 19:43:00 -08:00
daanx
f28d5c7029 add cast to avoid errors on clang 7 2024-12-09 19:12:03 -08:00
daanx
bbcbd3cd1f add cast to avoid errors on clang 7 2024-12-09 19:06:06 -08:00
Daan
3f732a981f fix debug build of MI_GUARDED 2024-12-09 15:49:20 -08:00
Daan
8f5449d271 various fixes for test pipeline 2024-12-09 15:39:15 -08:00
Daan
351cb0c740 small fixes for macOS 2024-12-09 15:16:36 -08:00
daanx
d5ed0cc71e various improvements 2024-12-09 14:31:43 -08:00
daanx
68ac94c1ba set default arena reserve back to 1GiB 2024-12-08 18:53:43 -08:00
daanx
bf2f2a8bf4 fix bug where only the first chunkmap field would be considered 2024-12-08 18:48:56 -08:00
daanx
88990cec2d merge from dev 2024-12-08 18:27:05 -08:00
daanx
c8607a8d01 remove os_tld and stats parameters to os interface 2024-12-08 17:56:13 -08:00
daanx
d9a2f76ff7 fix write to empty heap in mi_guarded build 2024-12-08 17:23:09 -08:00
daanx
2a4af6f169 comments 2024-12-08 17:21:17 -08:00
daanx
2084df3dde add dedicated meta data allocation for threads and tld 2024-12-08 12:20:54 -08:00
daanx
67cc424ada delete old files 2024-12-08 09:19:05 -08:00
daanx
36bb599873 merge from dev 2024-12-08 09:15:09 -08:00
daanx
2ed6e03d27 update optimization on haswell 2024-12-08 09:14:16 -08:00
daanx
68bd8744b7 fix spelling 2024-12-08 09:13:48 -08:00
daanx
e446bc27e5 Merge ..\mimalloc into dev3 2024-12-08 09:03:33 -08:00
daanx
5a06d2aeba update bit primitives 2024-12-08 09:03:25 -08:00
daanx
7c2b09fc3e only enable architecture specific optimization for armv8.1 2024-12-08 09:02:16 -08:00
daanx
c33de86da3 check for running in a threadpool to disable page reclaim 2024-12-07 17:11:11 -08:00
daanx
d0c86f3f0e specialize bitmap operations for common page sizes 2024-12-07 16:26:07 -08:00
daanx
bf42759d97 check heaptag on abandonded page allocation 2024-12-07 15:13:17 -08:00
daanx
6b52b19e3b arch specific optimizations 2024-12-07 15:02:27 -08:00
daanx
0e5d5831e4 Merge ..\mimalloc into dev3 2024-12-07 14:17:05 -08:00