Eduard Voronkin
4171c06df9
Merge 7023c205aa
into a080e3263a
2025-05-03 18:29:08 +02:00
daanx
417e8176bd
add unix large page size constant and adjust aligment to the large page size for large allocations
2025-05-02 16:27:00 -07:00
daanx
f3e92b1edd
Use second user TLS slot to avoid using reserved fields in the TEB (issue #1078 )
2025-05-02 16:12:20 -07:00
daanx
6bfb1c656c
allow size==0 for mi_prim_free (issue #1041 )
2025-05-02 08:40:21 -07:00
Daan
fae61ed946
fix assertion in mi_free_size (issue #754 )
2025-04-13 19:56:49 -07:00
Daan
a5298dd48f
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
2025-04-13 19:50:59 -07:00
Daan
7543e8989a
validate pointer before assertion in mi_free_size (issue #754 )
2025-04-13 19:49:47 -07:00
Daan
951538d469
fix prctl.h includes for alpine linux/musl (hopefully fixes #1065 , #1066 , #1067 )
2025-04-08 13:56:31 -07:00
daanx
5a58df6534
fix signed compare warning
2025-04-02 10:40:30 -07:00
daanx
235a0390ee
refactor numa_node_count
2025-04-02 10:34:00 -07:00
Daan
77b622511a
fix alpine compilation with prctl.h (issue #1059 )
2025-03-31 14:44:46 -07:00
Daan
cbab63f6c9
fix release build warning (unused mi_stat_total_print)
2025-03-30 16:15:27 -07:00
Daan
26b792d93b
fix aligned malloc_requested statistic
2025-03-21 20:07:16 -07:00
Daan
a077311a5e
improve tracking of malloc_requested count
2025-03-21 19:40:44 -07:00
Daan
d48bafe2bb
print statistics nicer
2025-03-21 19:21:41 -07:00
Daan
6ed451c555
fix linux compile by including linux/prctl.h
2025-03-21 16:48:50 -07:00
Daan
01ee3568c1
name anonymous mmap address ranges for debugging on Linux (based on PR #1032 by @zhuker)
2025-03-21 16:19:54 -07:00
Daan
7eafaa9685
fix visibility warning (issue #1031 )
2025-03-19 20:22:02 -07:00
Daan
b2dcab58f7
fix assertion failure (issue #1031 )
2025-03-19 20:20:36 -07:00
Daan
47bf3a5b1b
potential fix for sporadic assertion failure on random returning 0 (issue #1039 )
2025-03-19 19:06:21 -07:00
Daan
26fa8be427
improved accounting of committed bytes (issue #1035 )
2025-03-19 18:50:53 -07:00
Daan
9a35bca556
possible fix for wrong accounting of committed bytes (issue #1035 )
2025-03-19 16:12:17 -07:00
Daan
783c3ba486
improve QNX support
2025-03-06 20:40:52 -08:00
Daan
97d440b51d
Merge pull request #1019 from tkielan/dev
...
support building for QNX
2025-03-06 20:35:11 -08:00
Daan
9eac969ea5
improve atomic stat merging
2025-03-06 20:14:33 -08:00
Daan
71c61c4b91
fix multi-threaded access in stats merging
2025-03-06 19:52:06 -08:00
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
Timothy Kielan
c8880e1ba0
support building for QNX
2025-02-21 15:16:22 +01: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