Commit graph

354 commits

Author SHA1 Message Date
daanx
08b64e71a7 use subproc_main for final statistics output to avoid dereferencing the heap 2025-06-06 14:38:20 -07:00
daanx
7c7ecf096f ensure use of subproc_main during unsafe destroy to avoid derefercing the heap 2025-06-06 11:49:44 -07:00
daanx
d51e33b18e add _mi_stats_init to initialize the process start time 2025-05-21 19:11:47 -07:00
daanx
befe57f3e7 don't reset stats at process start so page_map commit is included 2025-05-21 16:50:30 -07:00
Daan
9864428349 merge from dev 2025-05-13 17:43:48 -07:00
daanx
41cc1bfe51 add guarded TLS test for Windows fixed TLS 2025-05-13 17:38:16 -07:00
Daan
21378d6d8a merge from dev 2025-05-13 16:13:34 -07:00
daanx
72f05e2f07 fix guarded sample rate of 1 (issue #1085) 2025-05-13 15:58:45 -07:00
daanx
3ef6784455 destroy the page map as well if MIMALLOC_DESTROY_ON_EXIT is set; see issue #1041 2025-05-12 22:05:15 -07:00
Daan
71b3e16171 fix invalid pointer detection in release mode (issue #1051 and #1053) 2025-03-31 10:54:12 -07:00
Daan
7eafaa9685 fix visibility warning (issue #1031) 2025-03-19 20:22:02 -07:00
Daan
265af0c90e add mi_stats_get_bin_size and chunk counters 2025-03-14 09:52:40 -07:00
daanx
d9580f3bfb update popcnt to be more efficient on x64 even without MI_OPT_ARCH=ON 2025-03-06 18:54:04 -08:00
daanx
798827b179 Merge branch 'dev' into dev3 2025-03-05 15:56:50 -08:00
daanx
8f40bed086 fix erms detection 2025-03-05 15:48:57 -08:00
daanx
45f0b0a8a6 remove extra verbose messages 2025-03-04 07:46:10 -08:00
Daan
c1cbe71836 add numa-affine allocation, and per-heap numa affinity 2025-03-03 18:08:57 -08:00
Daan Leijen
a447a1a297 merge from dev 2025-03-02 17:16:28 -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
6e0af52c95 merge new statistics from dev 2025-03-02 16:08:50 -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
ec92690117 merge from dev; lean stats 2025-03-01 17:35:34 -08:00
Daan Leijen
56aba086ea remove superfluous stat fields (count and freed) 2025-03-01 16:52:48 -08:00
Daan Leijen
527cd05fec add git hash to compile defines 2025-03-01 14:29:23 -08:00
daanx
44a4c83fbf maintain count in pagequeue for constant time test in free.c 2025-02-11 13:56:58 -08:00
Daan
c820259f3b fix heap_main declaration 2025-02-10 21:25:30 -08:00
Daan
8755369301 Merge branch 'dev' into dev3 2025-02-10 20:55:51 -08:00
Daan
78dd3f0e38 add mi_is_redirected back (issue #993) 2025-02-10 20:55:30 -08:00
Daan
e92358ba49 merge from dev; add _mi_heap_main_get
(issue #1010)
2025-02-10 20:42:29 -08:00
Daan
1d3d193561 make heap_main mi_decl_hidden 2025-02-10 20:37:01 -08:00
Daan
a7a0db06d5 merge from dev 2025-02-10 20:28:53 -08:00
Daan
156687ac8b rename to mi_thread_set_in_threadpool 2025-02-10 20:26:19 -08:00
Daan
fe5258a179 change process initialization order (potential fix for issue #1007) 2025-02-08 23:33:16 -08:00
daanx
5aa679cdee make page_reclaim_on_free 0 by default; but allow reclaim_on_free if the page was originally in this heap (just as in v2 with the full queue) 2025-02-05 15:41:37 -08:00
Daan Leijen
8fc8da5d81 use thread local stats for abandoned statistics to reduce contention 2025-02-04 17:54:49 -08:00
Daan Leijen
274bcb61db update option names 2025-01-31 12:11:25 -08:00
Daan Leijen
57eee51f46 rename full_page_retain to page_full_retain for consistency with the option 2025-01-07 21:42:30 -08:00
Daan Leijen
061ef80de7 clarify allow_destroy 2025-01-07 21:39:11 -08:00
daanx
b432f77bfc Merge branch 'dev3' into dev3-bin 2025-01-03 13:50:37 -08:00
Daan Leijen
b6adbbca0c combine flags and xthread_id 2025-01-03 13:15:46 -08:00
Daan Leijen
84f2038a2c Merge branch 'dev3' into dev3-bin 2024-12-31 14:28:25 -08:00
Daan Leijen
9665d604d3 merge from dev 2024-12-31 14:28:09 -08:00
Daan Leijen
9f70ce5fcd avoid accessing heap->tld after running thread_done (pr #974) 2024-12-30 11:34:02 -08:00
Daan Leijen
9561ae4286 rename segment_map_destroy to segment_map_unsafe_destroy 2024-12-30 11:00:54 -08:00
daanx
2aad74e0c3 Merge branch 'dev3' into dev3-bin 2024-12-26 10:15:38 -08:00
daanx
27e0c467ae fix c++ initializer warning 2024-12-25 14:56:11 -08:00
Daan Leijen
76d50d4566 Merge branch 'dev3' into dev3-bin 2024-12-25 14:41:43 -08:00
Daan Leijen
efe10513ec fix initializer warning on clang-18 2024-12-25 14:40:32 -08:00