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
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
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
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
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
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
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
Daan Leijen
5f9b42685e
remove declspec(dllexport) from DllMain on Windows (issue #1008 )
2025-02-08 12:51:06 -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
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
195249e6bf
maintain precise try count for reclaim
2025-01-07 19:28:44 -08:00
Daan Leijen
5764845c4d
fix build on msvc in C compilation; fix build with clang-cl on Windows
2025-01-06 10:27:46 -08:00
daanx
aa8e8ab58d
remove mi_debug_show_arenas parameter
2025-01-05 11:42:17 -08:00
daanx
de0324e1a7
return length from _mi_snprintf
2025-01-04 22:01:28 -08:00
daanx
a415940604
move singleton pages to the full queue at allocation time
2025-01-04 17:44:56 -08:00
Daan Leijen
2451b5685c
fix large OS page behaviour on Linux; default is now 2 which only uses large OS pages (not huge) through madvise
2025-01-03 20:00:40 -08:00
Daan Leijen
30dd2b9bec
allow large OS pages on Linux by default (but not on Android)
2025-01-03 18:10:37 -08:00
Daan Leijen
98699c983a
update to v1.8.8
2025-01-03 17:56:15 -08:00
Daan Leijen
e8c27072a1
fix alignment for mi_manage_os_memory (issue #980 )
2025-01-02 17:21:34 -08:00
daanx
b28e2bdd93
fix pointer alignment for zero-sized large alignment case
2025-01-02 15:02:40 -08:00
Daan Leijen
81d69d525e
add newline
2024-12-31 14:13:01 -08:00
Daan
b5ef802313
Merge pull request #909 from kdrag0n/patch-1
...
Change macOS mmap tag to fix conflict with IOAccelerator
2024-12-30 12:30:21 -08:00
Daan
f33aa58d88
Merge branch 'dev' into dev
2024-12-30 12:27:46 -08:00
Daan
e05aae944f
Merge pull request #917 from rui314/missing-include
...
Add a missing #include
2024-12-30 12:20:08 -08:00
Daan
cf8277f4e8
Merge pull request #918 from mneumann/dev-fix-build-on-dragonflybsd
...
Fix build on FreeBSD-derivate DragonFly
2024-12-30 12:18:35 -08:00
Daan Leijen
2d94df860b
fix potentially warning on gcc (pr #935 )
2024-12-30 11:44:03 -08:00
Daan Leijen
9f70ce5fcd
avoid accessing heap->tld after running thread_done (pr #974 )
2024-12-30 11:34:02 -08:00