Eduard Voronkin
86ed2e9db2
fix overflow on arm32
...
Previously we were dividing MI_SEGMENT_MAP_PART_SIZE (in bytes) by (MI_SEGMENT_MAP_PART_BITS * MI_SEGMENT_MAP_PART_BIT_SPAN) (in bits). Not to say that it looks incorrect, it also results in UB when MI_SEGMENT_MAP_PART_SIZE is 2^32 (32bit system).
2025-02-21 17:08:57 -08:00
Daan
01afcaacf6
remove robustness claim for dynamic override on Windows (issue #1018 )
2025-02-20 19:50:13 -08:00
daanx
aed71f8b32
prevent segment map overflow on arm32 (issue #1017 )
2025-02-20 15:09:18 -08:00
Daan
566ab5038b
do not use syscall on android (issue #1015 )
2025-02-18 16:02:52 -08:00
Daan
3c13579fcf
fix pre-processor overflow (issue #1017 )
2025-02-18 15:55:45 -08:00
Daan
ac35aa168c
consistent use of IN_LIST
2025-02-17 14:24:10 -08:00
Daan
8ed7b76adc
add armv9 match
2025-02-17 14:16:56 -08:00
Daan
6caf1ab6be
Merge pull request #1012 from nmoinvaz/dev
...
CMake arch detection from CMAKE_OSX_ARCHITECTURES
2025-02-17 14:09:19 -08:00
Nathan Moinvaziri
1699b2a82e
cmake arch detection from CMAKE_OSX_ARCHITECTURES (issue #1011 )
2025-02-14 16:12:01 -08:00
daanx
b357b80dfd
update mimalloc-redirect to v1.3.2
2025-02-13 11:10:09 -08:00
Daan
8b49a9f49c
remove deprecated ubuntu 20 from pipeline
2025-02-11 16:36:36 -08:00
daanx
ece1defe5b
parameter of clz/ctz is size_t
2025-02-11 14:35:21 -08:00
daanx
c62d276835
optimize mi_bin
2025-02-11 14:27:01 -08:00
daanx
d3897635ad
fix compilation warning
2025-02-11 09:22:31 -08:00
daanx
0c8069adab
use physical memory in kib to avoid overflow of size_t (issue #1010 )
2025-02-11 09:18:23 -08:00
daanx
ec4aa62b65
use physical memory in kib to avoid overflow of size_t (issue #1010 )
2025-02-11 09:12:29 -08:00
Daan
78dd3f0e38
add mi_is_redirected back (issue #993 )
2025-02-10 20:55:30 -08:00
Daan
1d3d193561
make heap_main mi_decl_hidden
2025-02-10 20:37:01 -08:00
Daan
156687ac8b
rename to mi_thread_set_in_threadpool
2025-02-10 20:26:19 -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
daanx
3e7875066b
add dynamic override test on windows
2025-02-09 19:22:26 -08:00
Daan
84aadcb087
avoid link error with asan/c++
2025-02-09 18:55:14 -08:00
Daan
62833be9eb
disable dynamic override test on ubsan/tsan/asan
2025-02-09 18:44:17 -08:00
Daan
7dd598e0e8
add dynamic override test
2025-02-09 18:32:16 -08:00
Daan Leijen
5f9b42685e
remove declspec(dllexport) from DllMain on Windows (issue #1008 )
2025-02-08 12:51:06 -08:00
Daan
069279e3e7
improve cmake for multi-arch binaries on apple
2025-02-08 12:18:27 -08:00
Daan
0e9159e0bf
add comment
2025-02-08 12:06:39 -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
Jo Bates
eb0081382b
support MI_OPT_ARCH when targeting multiple CMAKE_OSX_ARCHITECTURES
2025-02-01 17:04:46 -08:00
Daan
90b7a694eb
syntax error fix ( #992 )
2025-01-22 12:29:41 -08:00
Daan
5e71dfc336
check dynamically for getPhysicallyInstalledSystemMemory on windows (issue #992 )
2025-01-22 12:03:58 -08:00
daanx
14b4f674fa
nicer figure
2025-01-15 12:33:11 -08:00
daanx
2bc52557c5
add figure to readme for mimalloc-redirect
2025-01-15 12:31:35 -08:00
daanx
4a14c69554
disable using vcpkg in the VS projects
2025-01-15 12:11:52 -08:00
Daan
97c304dc39
vcpkg: bump sha
2025-01-13 16:59:24 -08:00
Daan
866ce5b89d
vcpkg: remove INTERFACE_INCLUDE_DIRECTORIES again
2025-01-13 16:57:59 -08:00
daanx
bd8cdc912c
add INTERFACE_INCLUDE_DIRECTORIES to vckpcg wrapper
2025-01-13 16:03:36 -08:00
daanx
af602df758
update readme to reflect name changes of the Windows export library to mimalloc.dll.lib
2025-01-13 15:32:52 -08:00
daanx
7a27001483
update minject to use mimalloc.dll by default (issue #989 )
2025-01-13 15:03:23 -08:00
daanx
8d520306b8
set pdb name on windows
2025-01-11 12:32:23 -08:00
daanx
24ec5978c8
use .dll.pdb for the dll debug file in Visual Studio
2025-01-10 10:59:44 -08:00
daanx
f4c3a9069a
update minject -- possible fix for #986
2025-01-10 09:41:13 -08:00
daanx
11e64c5c42
update vcpkg instructions
2025-01-10 09:19:08 -08:00
Daan
be05b232e8
fix obj path on windows
2025-01-10 08:44:31 -08:00
Daan
4e5a6d2136
initial sources for vcpkg support
2025-01-09 23:29:57 -08:00
Daan
3f91c9f937
move docker files
2025-01-09 23:10:12 -08:00
daanx
0be6db0e28
comments
2025-01-09 21:06:38 -08:00
daanx
4fcf56af2e
use consistent naming on Windows vs other platforms. Use mimalloc.dll.lib for the dll import library to avoid a clash with the static mimalloc.lib library
2025-01-09 20:57:08 -08:00
Daan Leijen
600ca88e87
fix library name for pkg config files (and to avoid extra patches in vcpkg)
2025-01-09 19:31:05 -08:00