Eduard Voronkin
7023c205aa
improve MacOS interposes to make mimalloc compile for older MacOS
...
I've got a failure while trying to compile with "-mmacosx-version-min=10.7" since MAC_OS_X_VERSION_MAX_ALLOWED is greater than MAC_OS_X_VERSION_10_15 but still we can't use `aligned_alloc` since of the lower bound (10.7).
I'm not sure about internal details of how `__OSX_AVAILABLE` works, but my hope is the it would only make this interpose available starting from the OS version specified.
Also, it helps me to compile mimalloc with "-mmacosx-version-min=10.7".
2025-03-06 10:26:22 -08:00
daanx
8f40bed086
fix erms detection
2025-03-05 15:48:57 -08:00
Daan Leijen
5c6ab532d9
make MI_OPT_ARCH by default OFF except for arm64 where we assume v8.1-a for fast atomics
2025-03-05 15:37:37 -08:00
Daan
438903421a
fix verbosity condition for printing options
2025-03-05 09:57:51 -08:00
Daan
db831d4cf4
make mi_options_print, mi_arenas_print, and mi_stats_print independent of the vebosity setting
2025-03-03 16:23:28 -08:00
Daan
b54a7d836c
fix compilation error with MI_GUARDED
2025-03-02 17:41:13 -08:00
Daan Leijen
58d13f6a4f
collect every N generic calls
2025-03-02 17:06:25 -08:00
Daan Leijen
4f1edad4fe
add arena_purges stat
2025-03-02 16:36:16 -08:00
Daan Leijen
c910750bbe
fix mi_stat_get_json signature
2025-03-02 15:39:08 -08:00
Daan Leijen
b319156c4f
fix test stress
2025-03-02 15:35:35 -08:00
Daan Leijen
5b685ef183
fix test stress
2025-03-02 15:35:12 -08:00
Daan Leijen
09ad6d2819
initial statistics api
2025-03-02 15:34:37 -08:00
Daan Leijen
1b749ea7d8
clean up statistics
2025-03-01 20:51:44 -08:00
Daan Leijen
bc5f636c5e
nicer stats
2025-03-01 19:46:01 -08:00
daanx
4d727ee6e6
avoid pthread allocation size in mstress bench
2025-03-01 18:30:24 -08:00
Daan Leijen
18174400b2
fix stats_add condition
2025-03-01 18:04:34 -08:00
Daan Leijen
56aba086ea
remove superfluous stat fields (count and freed)
2025-03-01 16:52:48 -08:00
Daan Leijen
bdaeb1d469
remove stat_adjust
2025-03-01 16:29:28 -08:00
Daan Leijen
113800d1f0
remove status message
2025-03-01 14:52:37 -08:00
Daan Leijen
b0b9d9c22b
add note that git rev dependency doesnt work
2025-03-01 14:51:27 -08:00
Daan Leijen
c2ae1c3539
fix git rev dependency in cmake configure
2025-03-01 14:31:24 -08:00
Daan Leijen
527cd05fec
add git hash to compile defines
2025-03-01 14:29:23 -08:00
daanx
5f6ebb70fa
add mi_options_print and mi_arenas_print
2025-02-28 17:30:41 -08:00
Daan
a857a04803
fix misspelling (issue #1017 , #1020 )
2025-02-24 10:50:26 -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