daanx
118bd8c97f
space out threads when searching for free pages
2024-12-12 16:37:31 -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
Daan
351cb0c740
small fixes for macOS
2024-12-09 15:16:36 -08:00
daanx
2084df3dde
add dedicated meta data allocation for threads and tld
2024-12-08 12:20:54 -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
7c2b09fc3e
only enable architecture specific optimization for armv8.1
2024-12-08 09:02:16 -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
daanx
60a8da75ff
Add MI_ARCHOPT support for msvc
2024-12-07 14:16:39 -08:00
daanx
bef52b96f6
Merge ../mimalloc into dev3
2024-12-07 14:04:02 -08:00
daanx
469ade882d
Add MI_ARCHOPT option to enable architecture specific optimizations
2024-12-07 14:03:16 -08:00
daanx
659a9dd51d
fix page info size and order; atomic page flags
2024-12-06 22:37:59 -08:00
daanx
55b70f1588
wip
2024-11-30 14:00:07 -08:00
daanx
f8d04dc2bc
compile with clang and gcc
2024-11-30 12:41:11 -08:00
daanx
441d4fed9f
wip: further progress on removing segments
2024-11-29 10:40:18 -08:00
daanx
8b6017d976
rename mi_debug_guarded_ to mi_guarded_
2024-11-16 22:42:32 -08:00
daanx
b27d154ffd
add virtual address bits and physical memory to the mem config
2024-11-16 15:37:08 -08:00
Daan
b3828bba9e
disable aligned hinting or SV39 mmu's, issue #939 , and pr #949
2024-10-27 21:58:20 -07:00
Daan
4377abe017
add cmake option to fall back on the fiber api do detect thread termination on windows
2024-10-21 22:59:41 -07:00
Daan
34e66778ec
fix MI_EXTRA_CPPDEFS setting
2024-10-21 05:10:09 -07:00
Daan
394e8c27d8
add cmake option to add C pre processor definitions more easily
2024-10-21 05:02:24 -07:00
Daan
7b5df14bea
initial work on guarded objects
2024-07-16 09:15:59 -07:00
Daan
e0baf882bb
reduce UBSAN parameters to stay within pipeline limits
2024-06-03 21:26:38 -07:00
daanx
f7ba9d9da0
refactor arena-abandoned to be an include for backward compat with existing build scripts
2024-06-03 18:04:59 -07:00
daanx
800034cb99
refactor arena abandonment in a separate file
2024-06-03 17:58:34 -07:00
Daan
4aa97336f7
remove the need for cmake patch in vcpkg port
2024-05-21 12:06:52 -07:00
Daan
9cd7e4cc68
rename library check to find_link_library
2024-05-19 15:43:15 -07:00
Daan
f739e4f2c3
check all link libraries (pthread, rt, and atomic) via check_linker_flag first before using find_library (see also issue #898
2024-05-19 15:38:26 -07:00
Daan
03224e17a0
bump cmake required version to 3.18 and detect libatomic more reliably, see pr #898
2024-05-19 13:25:31 -07:00
Daan
0f6d8293c7
use local dynamic tls for static MUSL builds (see issue #644 )
2024-05-11 08:08:03 -07:00
Daan
e46c1145a5
add separate MI_LIBC_MUSL option (issue #644 )
2024-04-20 16:19:59 -07:00
Daan Leijen
07ae64bd81
faster check for NULL in mi_free by combining with masking
2024-03-24 10:39:22 -07:00
Daan
7df348e2ea
fix typo, #756
2024-03-02 17:07:09 -08:00
Daan
128c7c1876
cleanup thp disable a bit
2024-03-02 16:55:13 -08:00
Daan
182583d3dd
Merge branch 'dev' into dev_thp_disable
2024-03-02 16:49:27 -08:00
Daan
c541a9b32e
Revert setting hardcoded install paths on Haiku #788 , by @begasus
2024-03-02 16:44:06 -08:00
Daan Leijen
3966953b7f
prefer using __builtin_thread_pointer over assembly primitives. Fixes #851 and #852 as well.
2024-03-02 11:50:57 -08:00
David Carlier
388d1aa9bd
new Linux/Android option proposal.
...
Allowing to disable transparent huge pages on Linux/Android, so
we avoid affecting the whole system (such as /sys/kernel/mm/transparent_hugepage/enabled).
2023-07-14 21:55:30 +01:00
daanx
4a85f32f8e
add libc.c source file
2023-05-19 10:24:39 -07:00
Daan
e74159486b
remove deprecated from description (issue #737 )
2023-04-25 10:21:34 -07:00
daanx
a0bd338d96
undeprecate MI_INSTALL_TOPLEVEL (issue #737 )
2023-04-25 08:25:50 -07:00
daanx
a2e1d2b893
add segment map to track valid pointers
2023-04-04 16:00:17 -07:00
daanx
77766e20a6
use only arena's instead of regions
2023-04-04 14:58:06 -07:00
Daan Leijen
accdc4de70
fix MI_SKIP_COLLECT_ON_EXIT syntax (pr #671 by @Unsttopabull)
2023-03-29 16:17:10 -07:00
Daan
c2a2533fba
fix haiku compilation (pr #679 )
2023-03-29 16:02:46 -07:00
Daan Leijen
651ff2c68b
fix cmake for windows
2023-03-29 11:55:00 -07:00